<select name="type"> <option value="all">All</option> <option value="act" selected="">Active</option> <option value="res">Re-signed</option> </select>
onload event for other than body element
Best Answer ankur0101, 10 March 2013 - 05:00 AM
Problem solved, I left --> }); after writing myFunc()
Things are working as I wanted.
Thanks for your help trq regarding jquery ready. I am bad at java script n jquery.
Go to the full post
#1
Posted 07 March 2013 - 06:36 AM
Website Hosting Mumbai | Domain Registration Mumbai | Price in India | Free Bollywood Songs | Web Hosting India
#2
Posted 07 March 2013 - 06:54 AM
For instance, jQuery triggers an event when the DOM is ready. http://api.jquery.com/ready.
http://thorpesystems.com | http://proemframework.org | http://github.com/trq
SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
#3
Posted 09 March 2013 - 09:21 AM
Hey trq, how can I execute any existing java script function ? Do I have to write like this >
Website Hosting Mumbai | Domain Registration Mumbai | Price in India | Free Bollywood Songs | Web Hosting India
#4
Posted 09 March 2013 - 04:59 PM
http://thorpesystems.com | http://proemframework.org | http://github.com/trq
SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
#5
Posted 10 March 2013 - 12:10 AM
Does not work.
My function is myFunc(str) and I write as follows :
<script>
function myFunc(str) {
...
...
</script>
<script>
$(document).ready(function () {
myFunc(str);
});
</script>
It does not work at all
Website Hosting Mumbai | Domain Registration Mumbai | Price in India | Free Bollywood Songs | Web Hosting India
#6
Posted 10 March 2013 - 12:12 AM
http://thorpesystems.com | http://proemframework.org | http://github.com/trq
SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
#7
Posted 10 March 2013 - 12:34 AM
I found out no jquery is running at all. I have added jquery file. in header.
Website Hosting Mumbai | Domain Registration Mumbai | Price in India | Free Bollywood Songs | Web Hosting India
#8
Posted 10 March 2013 - 12:36 AM
I tried to do
Edited by ankur0101, 10 March 2013 - 12:37 AM.
Website Hosting Mumbai | Domain Registration Mumbai | Price in India | Free Bollywood Songs | Web Hosting India
#9
Posted 10 March 2013 - 01:30 AM
http://thorpesystems.com | http://proemframework.org | http://github.com/trq
SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
#10
Posted 10 March 2013 - 04:49 AM
I came to know why it is not working. As I said earlier, I am using MVC (Codeigniter here)
In Header.php,
I am loading calling css and js files along jquery main file.
In mainbody.php,
I am writing myFunc() and calling that read jquery code.
This is why it is not working. I wrote .ready() thing that you said in header.php and it worked fine.
Now problem is I dont want to write that in header.php because it is common to all pages. And myFunc() is only called on maonbody.php.This is why I want to write jquery outside <head> i.e. in <body>
If jquery does not work, how can I do with java script ?
Website Hosting Mumbai | Domain Registration Mumbai | Price in India | Free Bollywood Songs | Web Hosting India
#11
Posted 10 March 2013 - 05:00 AM Best Answer
Problem solved, I left --> }); after writing myFunc()
Things are working as I wanted.
Thanks for your help trq regarding jquery ready. I am bad at java script n jquery.
Edited by ankur0101, 10 March 2013 - 05:02 AM.
Website Hosting Mumbai | Domain Registration Mumbai | Price in India | Free Bollywood Songs | Web Hosting India
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












