Parajsa.com


Parajsa Shqiptare Forum

Cfare ju duhet te dini?

 

Kthehuni Mbrapa   Parajsa Shqiptare Forum | Albanian Paradise | Supernatural phenomena

Hi, I have a question regarding Dashboard Widget Programming with XMLHttpRequest.

Pergjigju
 
LinkBack Alternativa Teme Vleresoni Temen
  #1  
Te vjeter 11-07-2007, 12:45
Minifotoja e anetarit lazy_kitten
I/e Sapoardhur
 
Reg: 11-07-07
Postime: 1
Kryesore Hi, I have a question regarding Dashboard Widget Programming with XMLHttpRequest.

Please help me!? My code works fine in Safari but it doesn't in Dashboard widget. I just put extension .wdgt to the folder without changing any word of my code. I don't know why. Here is my code: function submitButtonClicked () {xml_req = false;xml_req = new XMLHttpRequest ();if (xml_req) {xml_req.onreadystatechange = processReqChange;xml_req.setRequestHeader ("Cache-Control", "no-cache");url = httpLink + "?regionType="+ regionType;xml_req.open ("GET", url , true);xml_req.send(null);}}function processReqChange (){if (xml_req.readyState == 4 ){if (xml_req.status == 200){var resultText = xml_req.responseText;}else {resultText = "Cannot get the result due to: " + xml_req.statusText;}outputDataDiv = document.getElementById ("outputDataDiv");outputDataDiv.innerHTML += resultText;}}In Safari, my outputDataDiv has the resultText, but in Widget I got status: "Cannot get the result due to: undefined".Please help!
__________________
I Love Yahoo! Answers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Live!Google!Sphinn!Stumbleupon!Yahoo!Spurl this Post!Reddit! Wong this Post!
Pergjigjuni me Citim
Pergjigju

Bookmarks

Tags
dashboard, programming, question, widget, xmlhttprequest

Alternativa Teme
Vleresojeni kete Teme
Vleresojeni kete Teme:

Rregullore Postimi
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is aktivizuar
Buzeqeshjet jane te aktivizuar
Kodi [IMG] eshte i aktivizuar
Kodi HTML eshte i dizaktivizuar
Trackbacks are aktivizuar
Pingbacks are aktivizuar
Refbacks are aktivizuar
Kapercim Forumesh

Tema te ngjashme
Tema Filluesi i temes Forumi Pergjigje Postimi i Fundit
I wonder why people in this forum assume that when I ask a critical question I am... tim w Guide and Tourism 0 21-09-2007 23:32
Are Greeks xenophobes- question posed by ALBANIA POWER Greeks are xenophobs tim w Guide and Tourism 3 18-09-2007 14:40
Serbian projects on explusions of Albanians in nineteenth century Administratori Illyrians - The Albanians ancestors 0 05-08-2007 16:49
programming? Team5D Computers & Internet 1 05-08-2007 15:35
Follow up question: Religion has its spirits, but paranormal can't!? advwizard Supernatural phenomena 1 05-08-2007 05:31


Te gjitha oret jane ne GMT +1. Ora tani eshte 03:02.




Parajsa Shqiptare