I have a page that has the following Javascript on it:
Page.ClientScri pt.RegisterStar tupScript(typeo f(string), "OpenWindow ",
"<script langauge='javas cript'>OpenNewW indow('MyPage.a spx', '" + queryString
+ "', 'anotherName'); </script>");
I was asked to add Ajax to the grid so it would load faster. Trouble is when
I did that, it broke the above line of code. When a user selects an item in
the grid, it should open a new window with the information from the row they
clicked. I verified that the code is being hit, but the javascript does not
run. Can anyone tell me how I can get the javascript to run with it being in
an Ajax update panel? 2 1379
I found out that I needed to be using ScriptManager.R egisterStartupS cript,
then it worked as before.
"Wannabe" wrote:
I have a page that has the following Javascript on it:
Page.ClientScri pt.RegisterStar tupScript(typeo f(string), "OpenWindow ",
"<script langauge='javas cript'>OpenNewW indow('MyPage.a spx', '" + queryString
+ "', 'anotherName'); </script>");
I was asked to add Ajax to the grid so it would load faster. Trouble is when
I did that, it broke the above line of code. When a user selects an item in
the grid, it should open a new window with the information from the row they
clicked. I verified that the code is being hit, but the javascript does not
run. Can anyone tell me how I can get the javascript to run with it being in
an Ajax update panel?
Adding "AJAX" to a grid won't make it load faster. It still has to go to the
server, execute the method that gets the data, and marshal it back over
XMLHTTP to repopulate the grid. In fact, because of the client-side JSON
script manipulation, it may very likely load "slower".
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net
"Wannabe" wrote:
I have a page that has the following Javascript on it:
Page.ClientScri pt.RegisterStar tupScript(typeo f(string), "OpenWindow ",
"<script langauge='javas cript'>OpenNewW indow('MyPage.a spx', '" + queryString
+ "', 'anotherName'); </script>");
I was asked to add Ajax to the grid so it would load faster. Trouble is when
I did that, it broke the above line of code. When a user selects an item in
the grid, it should open a new window with the information from the row they
clicked. I verified that the code is being hit, but the javascript does not
run. Can anyone tell me how I can get the javascript to run with it being in
an Ajax update panel?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: sgmaat |
last post by:
I have create a AJAX webpage where if you press a link content is
loaded into a div. NOw when this content is loaded no javascript is
processed (i.e <Script>alert(..);</script>), but if the javascript is
in <a onclick="..."> it will work.
What i would like to know is:
- Is this normal
- What do i need to change so that javascript does get...
|
by: wolis |
last post by:
Hi all,
In an AJAX environment, is it possible to load and display some HTML
and JavaScript and have that JavaScript functional?
I have tried but the JavaScript functions dont appear to be visible -
Im assuming this is becasue they were not loaded when the initial AJAX
application/page originally loaded.
Conceptual example if it helps:
|
by: jacob navia |
last post by:
Programming languages come and go. Still is amazing that in this survey
from
http://www.devsource.com/article2/0,1895,2016936,00.asp
the C language comes second, right after Java.
Java
# What it is: An object-oriented programming language developed by James
Gosling and colleagues at Sun Microsystems in the early 1990s.
# Job...
|
by: Ralph |
last post by:
Okay I have a website where the user is going to hit a button to kick
off a process that is going to take a long amount of time.
Is there anyway without using AJAX, or possibly a windows control on a
page that connects to a webservice to show the user the progress of
this operation.
It seems almost a given that I must use either ajax or some...
|
by: Free Ebooks |
last post by:
81 AJAX and 24 JavaScript Ebooks
Here are some of the AJAX topics and areas covered by these ebooks:
Rails and AJAX
Building Ajax Web Applications
Creating Ajax Web Pages
Ajax Patterns
Ajax Tutorial
Ajax Best Practices
Ajax XMLHttpRequest and Struts
| |
by: lmttag |
last post by:
Hello.
We're developing an ASP.NET 2.0 (C#) application and we're trying to
AJAX-enable it. We're having problem with a page not showing the page while
a long-running process is executing. So, we're looking for a way to display
the page with a "please wait..." message while the process is running, and
then, when the process is done, update...
|
by: Nathan Sokalski |
last post by:
I am moving my website from my machine to my webhost, and need some help
with what extra files I need to include due to the fact that I used AJAX in
my site. Everything on the site is obviously functioning as desired when I
test it on my machine using Visual Studio 2005. From what I have determined,
the files I am forgetting are the JavaScript...
|
by: paulie |
last post by:
Hi,
I have been experiencing an issue when trying to use AJAX to reload a DIV area
using a timer of 2000ms, which contains a html page with another DIV and javascript.
Scenario
-------------
I have perl script which simply runs a ps on a Solaris server and generates
a static html page with all of the code perfectly and this html page...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |