Welcome Guest, Not a member yet? Register   Sign In
CI and jQuery help
#11

[eluser]Sceneshift[/eluser]
Ahh, sorry I did actually change the name to ID, must have not copy pasted properly...

Code:
<form id="catch_edit" action="http://localhost/kingsfishing/catches/do_edit" method="post">
            <div id="catch_location" style="display:none;">Thanks for submittin'</div>
            &lt;input type="text" name="tbLocation" id="tbLocation"/&gt;
            <br/><br/><br/>
            &lt;input type="submit" name="btnSubmit" value="Find" /&gt;
        &lt;/form&gt;

This is certainly a weird one, what would cause it to print the entire pages source like?
#12

[eluser]MCrittenden[/eluser]
When you manually go type in yoursite.com/catches/do_edit does it echo "h1" like it's supposed to?
#13

[eluser]Sceneshift[/eluser]
Yep, it also echos "hi" if I take out the script code so I know my form is working correctly.

Spooky stuff.
#14

[eluser]MCrittenden[/eluser]
Well I hate to say it but you've got me stumped. Let me know if you figure it out. Sorry I couldn't help more.
#15

[eluser]Sceneshift[/eluser]
Wow now this is really, really strange! I managed to get it to work by changing the name to something else... for some reason if I set the ID as catch_edit, it doesn't work. Thanks so much for your help, really really appreciate it.
#16

[eluser]MCrittenden[/eluser]
Haha well whatever works! Glad you figured it out.
#17

[eluser]Symcrapico[/eluser]
Just a quite note on using Ajax call with IE. Let's say that your Ajax call calls "http://www.me.com/controller/fortuneTeller/". If fortuneTeller never returns the same thing, you'll want to add a random string at the end of the url like so:

Code:
var nc_helper = new Date().getTime();
$('#munic_list').load('http://www.me.com/controller/fortuneTeller/'+nc_helper);

This is needed since IE is normaly caching the link's data, so by fooling IE with the nc_helper it works well.




Theme © iAndrew 2016 - Forum software by © MyBB