|
hello,
i am building an http client server communication. both client and server are placed on the same ip
(on an external equipment). inside the html document i wrote a script sending an http "get" request.
javascript has an open function that one of its attribues it url. what do i have to fill in this field?
that you,
|
|
|
|
|
er....
Please can you attach your code?
|
|
|
|
|
Got no meaning. I think you are using some javascript code that initiates one AjaX request.
Please let me know what exactly you are looking for so that we could help u.
|
|
|
|
|
hello,
thank you very much for your help.
The code bellow is the js i wrote in my html doc.
(It is taken from w3schools.)
try
{
xmlHttp=new XMLHttpRequest();
}
catch(e)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
alert ("Your browser does not support XMLHTTP!");
return;
}
}
xmlHttp.open("GET",url,false);
xmlHttp.send(null);
What i wrote as url is: "http://"+the ip address of the equipment i am working on (http://10.0.4.150).
As i have already mentioned, both client and server are placed on the same equipment.
The server didn't get the request at all. I know that something does work because i got the html doc
by an http request.
I hope i explained myself properly.
Thanks again,
|
|
|
|
|
You cant access other web site using AJAX. AJAX can only access the pages that are within the same virtual directory.
Say your page which calls the AJAX is
http://www.abc.com/mno.aspx
And it calls
xmlHttpRequest.open('http://www.abc.com/xyz.aspx')
it will work fine but
xmlHttpRequest.open('http://www.xyz.com/abc.aspx') will give "Access Denied"
Hope you understand.
|
|
|
|
|
Hello everyone!
I have a problem with dropdownlist choice selection. I made 3 dropdownlists date month year for entering date of birth. For checking 31 or 30 and leap year i have to enabe autopost back..is there any way that without post back i can modify lists or change as i have seen in many websites..
|
|
|
|
|
You have posted the same question in asp.net forum and Its answered.
|
|
|
|
|
Dear All,
Can we receive Broadcasted messages on web (asp.net using c#).
Regards
Jalsa
|
|
|
|
|
|
Hi, when an asx file is played on the windows media player, i need to check if the user is logged in or registered. Can I do this on asx? Thank you.
|
|
|
|
|
asx is a media file format. why dont you check the user validation from within the page.
I dont know if the media format supports http calls to the server or not. You must load the media after checking the login status of the user.
|
|
|
|
|
Hi!
I'd like know if somebody know how get open windows name?
I want get a collection of all the open windows. I know in VB.NET, but dont know in DHTML/VBScript for Windows Vista Sidebar.
If somebody can help me, I'll to stay grateful! Thanks
Erik
|
|
|
|
|
in php you'd do this: Grab Title[^]
Maybe you can translate that into your code...
|
|
|
|
|
Hi,
I want to get the ID value or class value of my current DIV's parent using ASP. Does anybody have any idea regarding how to achieve this?
<div class="parent" ID="parent_ID">
<div class="child" ID="child_ID">
<%
tmp = <ASP code to get the "parent" DIV's class/ID value>
if tmp="parent" then
do something
else
do some more thing
end if
%>
</div>
</div>
Please help!!!
Thanks
- Jills
modified on Monday, August 3, 2009 3:27 AM
|
|
|
|
|
This looks like you're using ASP, which you said. ASP.NET replaced ASP about 7 years ago. ASP questions go in the web dev forum.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote:
ASP questions go in the web dev forum.
Sorry for posting it in the wrong section. How can I move this to webdev forum?
Regards
Jills
|
|
|
|
|
I'll move it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I Don't think this can be done. Theres no way of knowing the values of the ID's above in ASP3.
Please correct me if i'm wrong!
|
|
|
|
|
Thanks senorbadger for the reply.
We will get the value in client side using javascript code:
this.parentNode.getAttribute('class')
But I want to do it in server side. Our website is built using ASP.
Regards,
Jills
|
|
|
|
|
I have seven to eight pages in my web. What should i do if i want to make same changes in all the pages. Rite now i open every page separately and do it sequentially. Is there any technique that i can make same change to all web pages at once?
|
|
|
|
|
yes.
1) Use a tool with a "Find and Replace All" tool (such as dreamwevaer)
or
2) use functions and / or include files. For example in PHP:
-------------------
File "a.php":
hello
-------------------
File "b.php":
world!
-------------------
opening file b.php will output:
"hello world!"
|
|
|
|
|
How do I change active view when ScriptManagers OnNavigate event fires?
On button control click all is ok, however, when user clicks browsers back button fires OnNavigate.
It allows to change label.text property and it displays correct, but multiview shows old view.
It`s nothing to wory before something happen and when it happents it`s alredy to late to wory!
|
|
|
|
|
I am assuming you know nothing about AJAX ( which has no OnNavigate event ) and you're using the ASP.NET AJAX library, in which case, this is the wrong forum.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hey,
I was just wondering what kind of coding environment people prefer for web development? There are so many options, but I'm more interested in what is generally an industry standard. I guess the question comes down to, do most people (personal preference and in industry) _really_ prefer text editors?
I guess everywhere on google people's comments come down to bashing visual-aided environments (things like Dreamweaver) and take pride in using text editors/notepad. Is this really the case?
I'd appreciate if anyone can shed some light on the topic, I don't really do web development in industry, but rather make personal sites for fun so I'm a little curious
Thanks,
See_Sharp
|
|
|
|
|
I tend to hand code at the beginning, using notepad, but then, as sites become bigger and more complex I will use VWD, but just to keep track of things.
------------------------------------
"When Belly Full, Chin Hit Chest"
Confucius 502BC
|
|
|
|