473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Javascipt Not Working in Ajax Generated Parts of site

i have js calendar which works fine bun when i inster SAME html+javascript to my index file but generated in ajax SAME calendar code do not work.... old ones continue working... why javascript is not working in ajax generated parts? help me plz, what can i do?
Nov 22 '06 #1
4 2632
Close the head tag before starting Javascript ie,
<head runat="server"></head>
<script language=JavaScript>

//body

</script>
Nov 23 '06 #2
it's closed...

i mean i have a smal little part site generated in something.php (HTML and Javascript) and then inserted it into index page using ajax... scripts generated in something.php do not work... on the other hand if i include this php file everything will work fine...
Nov 23 '06 #3
i discovered that everything between <script> tags do not work in ajax generated filas but they work in HTML... for example:

[HTML]
This do NOT works with ajax:
<script>alert('asd');<script>

Works Fine:
<a href='#' onClick='alert("asd")'>asd</a>
[/HTML]

haw can i make script tags work? plz help
Nov 24 '06 #4
when I closed the <head> before opening <script> the scripts working fine,I dont know why it isnt working in ur case.Like this.Try once more.

Expand|Select|Wrap|Line Numbers
  1. <head></head>
  2. <script>
  3. alert('asd');
  4. </script>
  5.  
Nov 25 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Nick | last post by:
the customError feature is not working. I have it setup as the help says in my web.config file. <customErrors defaultRedirect="DsAppError.aspx" mode="RemoteOnly"/> I tried in a couple...
10
by: Bugsy | last post by:
hi fellows pro,,,,, i want some details regarding AJAX. can anyone help me in that .... reply me with some good articles as well as tutorials in (.net)
9
by: smk17 | last post by:
I'm not even sure what to put in the Subject for this. Here is what I'm doing and what I need to know I've made a website about high school basketball in New York State. One thing I want to...
3
by: David Prentice | last post by:
I am having dificulty debugging an ASP.NET Ajax (Novemver CTP) app on windows vista RTM. I have found the following interesting facts but cannot join the dots . . If my application is...
22
by: tomb | last post by:
I am generating a form dynamically through AJAX. The form and the data come in very nicely, but my reset button doesn't do anything. There are 3 other buttons that call javascript functions - they...
1
by: Mike | last post by:
Hi, I have a component that resides on the server side (distributed). This component will trigger some events that I need to catch in an ASP.NET form.
2
by: KBS Tours Development | last post by:
Hi, I've deployed latest release on production with new AJAX functionality but the server posts back completely and toolkit functionalities are not working at all like calendar etc. Here is...
1
by: Lloyd Sheen | last post by:
I have just completed (almost) an exercise to convert a web site to a web app (acedemic reasons - just to see the differences). A few bumps on the road such as copying class files to the new...
7
by: Joe | last post by:
I added some ajax to my asp.net web site and will Ajax just doesn't seem to work. Does Any one PLEASE have any ideas on why Ajax doesn't work on Apache 2.2.6 w/asp.net 2.0
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.