Welcome Guest, Not a member yet? Register   Sign In
POP-UP ... JavaScript - CodeIgniter
#1

[eluser]d4v0[/eluser]
Hi everybody!
I was trying to make a pop-up with CodeIgniter... I mean, using JavaScript... but I still can't.
I was thinking about to make a file with the window I want to make pop-up, but do you know if it's possible to make a pop-up only indicating the url adress??

Well... this is part of my code:

Code:
$nuevorubro = base_url().'index.php/inventario/forminsertar_maerub';
        
echo '<br /><br /><center><a href="[removed]nuevaventana(\''.$nuevorubro.'\')">Agregar Nuevo Rubro</a></center><br><br>';

where 'nuevaventana' is the name of my function in JavaScript, and '.../forminsertar_maerub' is the function called ( located in my controller: 'inventario' ).

I'm not sure... but i think it's not possible to make this kind of pop-up's .. but i wonder.. what i can do! :long:

Thanks any help!
#2

[eluser]John_Betong[/eluser]
&nbsp;
Try this in your view:
Code:
&lt;?php
  $atts        = array(
                  'width'      => '800',
                  'height'     => '600',
                  'scrollbars' => 'yes',
                  'status'     => 'yes',
                  'resizable'  => 'yes',
                  'screenx'    => '300',
                  'screeny'    => '100',
                  'title'      => 'title'
                  );

$href = 'http://ellislab.com/forums/viewthread/97273/';
$myPopup = anchor_popup(
                      $href,
                      'This thread',
                      $atts);
echo $myPopup .'<br />';                      

?&gt;
&nbsp;
&nbsp;
&nbsp;
#3

[eluser]d4v0[/eluser]
Thanks a lot!
it works now!
I think I should read all the User Guide, right? :red:

Well! Solved Problem!
#4

[eluser]John_Betong[/eluser]
&nbsp;
I am pleased I was able to help.
&nbsp;
The User Guide is the first place to start looking and although a bit cryptic is good to obtain key words to search the forum.
&nbsp;
When do you think we will be able to see your site?
&nbsp;
&nbsp;
&nbsp;
#5

[eluser]d4v0[/eluser]
Hi! Actually, I'm not working on a Web-Site. My project is about a Inventory Control System. (Sistema de Control de Inventarios :-) )

Thank you, anyway! :cheese:




Theme © iAndrew 2016 - Forum software by © MyBB