javascript help needed - please - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: javascript help needed - please (/showthread.php?tid=10971) Pages:
1
2
|
javascript help needed - please - El Forum - 08-20-2008 [eluser]new_igniter[/eluser] Hello, I am having problems with something that appeared to be a simple task. Below is my javascript function, in which I am displaying a hidden div, which then has a link to display another hidden div within. When I go to execute the 'showSomethingElse' function on the onclick, it says postID is not defined. So, how do I pass the postID passed into the showCreate function, so that I can call the showSomethingElse function correctly. **it keeps removing the code ** Code: function showCreate(postID) javascript help needed - please - El Forum - 08-20-2008 [eluser]Randy Casburn[/eluser] Post the code without the < script > tags, that should allow us to see it. Randy javascript help needed - please - El Forum - 08-20-2008 [eluser]new_igniter[/eluser] I actually wasnt posting the script tags, just the function. It removes the innerHTML and the second function call. Perhaps this is the problem? I am trying to write a javascript function call through innerHTML. So I have this function, showCreate, seen above, and I want to write this onclick javascript function to show up in the div through innerHTML. My problem is that I cant pass the value, passed in through the showCreate function, to the newly created function in the innerHTML javascript help needed - please - El Forum - 08-20-2008 [eluser]Randy Casburn[/eluser] post it with a space thus: inner HTML - my brain is all twisted up. Must see the code. javascript help needed - please - El Forum - 08-20-2008 [eluser]new_igniter[/eluser] yes, here is the code with spaces. Sorry for my confusing explanation. Code: function showCreate(postJID) javascript help needed - please - El Forum - 08-20-2008 [eluser]new_igniter[/eluser] arrggghhh!!!!! ok, let me try once more. javascript help needed - please - El Forum - 08-20-2008 [eluser]Randy Casburn[/eluser] or attach a zipped up file and I'll look at it that way. javascript help needed - please - El Forum - 08-20-2008 [eluser]new_igniter[/eluser] Code: function showCreate(postJID) javascript help needed - please - El Forum - 08-20-2008 [eluser]new_igniter[/eluser] ok that one is spaced on and the onclick is just click and the showMore function is all spaced out. javascript help needed - please - El Forum - 08-20-2008 [eluser]Randy Casburn[/eluser] [never mind this post] |