473,396 Members | 1,599 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,396 software developers and data experts.

Make AJAX call in address bar.

dmjpro
2,476 2GB
Is it possible to make AJAX call in the address bar of any WEB-Browser?
If possible then please help me to do it.
I tried but I failed.
And if not then please mention the reason behind it.
Ok.
Please Help.

Kind regards,
Dmjpro.
Aug 22 '07 #1
2 2160
dmjpro
2,476 2GB
Is it possible to make AJAX call in the address bar of any WEB-Browser?
If possible then please help me to do it.
I tried but I failed.
And if not then please mention the reason behind it.
Ok.
Please Help.

Kind regards,
Dmjpro.
Sorry Guys.
Sorry for making such a fake Question.
I did it and succeeded.
Anyway.
You can try this Code.
Expand|Select|Wrap|Line Numbers
  1. javascript:try{function test(){if(ajax.readyState==4)alert('Debasis: '+ajax.status);}var ajax=new XMLHttpRequest();ajax.open('GET','ABCD?ab=abcd',true);ajax.onreadystatechange=test;ajax.send(null);alert('Done');}catch(e){alert('Errpr: '+e.description);}void(0)
  2.  
What I made mistakes last time when i could not succeed.
Expand|Select|Wrap|Line Numbers
  1. ajax.onreadystatechange=function(){/*Some code is here*/}
  2. //It can't be supported, I dn't know why.
  3. //Now I defined it separately and got succeeded.
  4.  
Actually now a days I am doing R&D on ORKUT JS code.
So I am trying to make AJAX call at a time some scraps will be posted to my Friends

Kind regards,
Dmjpro.
Aug 22 '07 #2
gits
5,390 Expert Mod 4TB
hi ...

therefore the address-bar must evaluate the js and you may achieve that for example with the following way:

Expand|Select|Wrap|Line Numbers
  1. javascript:alert('test')
put that in the address-bar

kind regards

ps: ahh ;) ... we posted the same time ... glad you got it working ...
Aug 22 '07 #3

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

Similar topics

6
by: paladin.rithe | last post by:
I'm looking to use AJAX as part of the login system for a project, but I'm not finding what I'm looking for. I've seen the example of how to do an AJAX login, but that isn't really what I want....
15
by: Evil Otto | last post by:
My page loads, and calls an init() function that returns content to a div on the page, as well as setting a $_SESSION variable. The content it returns includes a link that calls the same variable,...
17
by: Arjen | last post by:
Hi, I want to reload 2 divs at one click. Ive tried: <a href = "javascript:void(0);"...
2
by: groups2 | last post by:
I am fixing up a site where the address data for all the addresses for each customer is called with 1 query and then added to a javascript array. The street name of each shipping addresses is...
3
by: dhsieh | last post by:
I am trying out nested AJAX calls for the first time, but I seem to have hit a snag. The code snippet is the outer AJAX call and a function, it gathers information about a company. As we get towards...
3
by: nnaveenraju | last post by:
Hi Gurus, I am new to Ajax and JAVA. I am able to call the servlet class from the JSP page using AJAX. The servlet class is called successfully. I am processing some data and the data has...
1
by: Giles | last post by:
My web site HTML comes from a database via querystring e.g. page.asp?pid=55 I have a separate asp search page, search.asp. Its output is retrieved by an ajax call from page.asp and its HTML is then...
8
omerbutt
by: omerbutt | last post by:
hi there i have a form with multiple input (type/text ) fields and three inputs(type/file) fields i have to submit the form via ajax because i have multiple forms on this page ,you can say it is a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
jinu1996
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...

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.