|
Honstly, I don't know anything about javascript, only heard about it.
But you don't have any suggestions for me? Actually I don't know where to insert the code you have given me?
Do you know a professor or TA that I can ask? Also, Do you have a good book that I can work with it easily?
Thanks very much for help and sorry for any inconvenience I'm causing.
|
|
|
|
|
Hi,
I just trying to get a result from a http get request to another domain webpage. Here is my javascript funtion for the request:
function pegaCEP() {
wRequest.set_url('http://cep.republicavirtual.com.br/web_cep.php?cep=13026075');
wRequest.set_httpVerb("GET");
wRequest.add_completed(completed);
wRequest.invoke();
}
If I use set_url for a webpage in the same site, it works fine, otherwise it cames blank (not denied, just empty, no error). I was looking around and saw something about proxy... Do I need proxy here? If so, can you tell how to do it? If not, is there any web.config solution or something?
Thanks,
Dirso
|
|
|
|
|
Here[^] is a blog post on the subject.
|
|
|
|
|
Have you checked wRequest.status? If it is 200 then it is OK. Else, you got error.
|
|
|
|
|
It was returning 0... sadly
Thanks,
Dirso
|
|
|
|
|
Thanks, guys for your attention but I decided to create a webservice, download the webpage in the webservice and call it with Ajax. It worked fine.
Thanks,
Dirso
|
|
|
|
|
I'm developing an acsx which has an Accordion control inside a CollapsePanel. If the control loads with the CollapsePanel collapsed, when I expand or collapse panes in the Accordion control the panel which comprises the CollapsePanel's body resizes accordingly with the Accordion pane. If the control loads with the CollapsePanel expanded, the CollapsePanel's body does not resize with resizing on the AccodionPanes. However, if I collapse and expand the CollapsePanel then it starts working as expected. I have tried expanding the CollapsePanel by default by setting the Property on the CollapsePane in design mode and throught code in page_load (setting Collapse=true and ClientState="true"). Either way the behavior is the same. I am using .NET 2.0 with VS2005. I am using toolkit version 1.0.20229.20821.
Thanks,
Jeff
|
|
|
|
|
try by setting the autosize property of accordion control to "None"
|
|
|
|
|
how to assign the filename to the fileupload control while editing some image
|
|
|
|
|
As per I know, FileUpload control file path cant be modified from the server. The user will have to click browse button to select a file. You can upload the file and then change the filename in the server.
Please clarify the exact requirement once more to help you.
|
|
|
|
|
assign the upload control in to a session and take when ever u need
|
|
|
|
|
Hello,
can any one be help me to resolve this issue , actually i need to
use tooltip for displaying the dynamic data inside gridview control
on mouse hover.
thanks in advance
Regards,
Atul khare
|
|
|
|
|
most of the HTML control shows tooltip for Title I think. Place your tooltip text in the Title attribute of the html controls.
You can also hook the mouseover to the control to place a floating tooltip element created using DIVs...
|
|
|
|
|
ToolTip='<# DataBinder.Eval(Container.DataItem,"Status").ToString() == "False" ? "tooltip1" : "tooltip2" >'
|
|
|
|
|
Hi,
I am having a web application, which can be accessed by different users based on their userid's and passwords.
Now I want to prevent user 1 from accessing the application from more than one system.
In order to prevent this I have created a table with three columns as :
userid password flag
with flag having two values (true, false)
true means that user is logged in
false means looged off
session id generated by the server when the session is created
SESSION.SESSIONID gets the id generated on the IIS.
reference: http://msdn.microsoft.com/en-us/library/ms524326.aspx
now how can I delete it?
so that there can be only one user per user id.
am I right in achieving the goal?
I don't want to use Asp.net MembershipProvider.
thanks
|
|
|
|
|
I don't think I understand what you are trying to accomplish. Are you looking to limit the IP addresses that can access the application? Are you trying to ensure that if a person is logged in through one browser that they can't be logged in from a second?
|
|
|
|
|
HI,
Mike Ellison wrote: what you are trying to accomplish.
Mike Ellison wrote: Are you trying to ensure that if a person is logged in through one browser that they can't be logged in from a second?
yes exactly.
is it possible?
|
|
|
|
|
shankbond wrote: session id generated by the server when the session is created
SESSION.SESSIONID gets the id generated on the IIS.
reference: http://msdn.microsoft.com/en-us/library/ms524326.aspx
now how can I delete it?
Why you want to delete it ? How does it relates with signle user singing? Session ID is unique for each and every user.
On Logoff you make sure that, data base field is reseting properly. and what about if user Close the Browser by Clicking [X] button ? You need to handel this situation also.
Thanks !
|
|
|
|
|
Hi abhijit,
Abhijit Jana wrote: if user Close the Browser by Clicking [X] button ?
how can I do that?
can You please help....
thanks
|
|
|
|
|
shankbond wrote: how can I do that?
You can try this way,
function CheckBrowserClose()
{
if(window.event.clientX < 0 && window.event.clientY <0)
{
}
}
And called it on Body unload .
|
|
|
|
|
it is possible when the window is closed or at the time of session time out, but it is not possible in case of network failuer
|
|
|
|
|
Hi Abhijit and YESU,
yesu prakash wrote: but it is not possible in case of network failuer
I think Yesu's point is correct , can we handle this scenario as well, it does exists in gmail though.
whenever two or more users with same email id's log in, in different machines , one of them can log out all other machines.
thanks
|
|
|
|
|
Hi
how can I get node value from var containing xml file data using javascript.
thanks.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
|
Hello
in below code after getting xml data in variable now I want to get node value of first child.
I have tried but not able to access node value but when I'm showing that var in alert message it's showing data in xml format.
thanks
see below code:
<script language="javascript" type="text/javascript">
<!--
//Browser Support Code
function ajaxFunction(){
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
// Something went wrong
alert("Your browser broke!");
return false;
}
}
}
// Create a function that will receive data sent from the server
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
document.myForm.time.value = ajaxRequest.responseText;
//alert(ajaxRequest.responseText)
ajaxResponse = ajaxRequest.responseText;
//ajaxResponse contains xml data now I want get node value of first child
}
function verify()
{
// 0 Object is not initialized
// 1 Loading object is loading data
// 2 Loaded object has loaded data
// 3 Data from object can be worked with
// 4 Object completely initialized
if (xmlDoc.readyState != 4)
{
return false;
}
}
//-->
</script>
You get the best out of others when you give the best of yourself.
|
|
|
|