OK. sorry for not providing more information previously. Currently here's 
the 404 I'm getting back when I submit the asynchronous request:

Page not found (404)

Request Method:
GET

Request URL:
http://127.0.0.1:8000/mediahelp/comphelp/mediaHelpPopup.html

 Using the URLconf defined in streamingmedia.urls, Django tried these URL 
patterns, in this order: 
1.^mymedia/
2.^mediaadmin/
3.^mediahelp/ ^$
4.^mediahelp/ ^comphelp/$
5.^admin/
The current URL, mediahelp/comphelp/mediaHelpPopup.html, didn't match any 
of these.
 
The code from the comphelp url view is very basic and looks like this:
def component_help(request):
    view = "component_help"
    dctnry = {}
    reqGET = request.GET.copy()
    if reqGET.has_key('fieldId'):
        field_value = reqGET['fieldId']
    else:
        field_value = "NONE FOUND"
    message = "This is a test message!...FIELD-ID="+field_value
    dctnry['helpdata'] = message
    return HttpResponse(message)
 
Currently I only have it set up to return a message just to prove that the 
call was made and returned  successfully. This is all very basic code at 
this point since I'm just trying to set up all of the needed functionality. 
Here's the html page in question:
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MEDIA-HELP POPUP SCREEN</title>
</head>
<body>
</body>
</html>
 
Finally here are the javascript routines which are supposed to display the 
data returned in the popup:
 
function popup(responseData)
  {
     var href = "../../mediahelp/comphelp/mediaHelpPopup.html";  
     var windowname = "Super Admin Reports POPUP";   
      if(!window.focus)
      {
          return true;
      }
      helpdatascreen = window.open(href, 
windowname,'width=400,height=200,scrollbars=yes');
      helpdatascreen.body.appendChild = responseData;
      helpdatascreen.focus();
      return false;
  }
function displayHelpData()
  {      
      if(request.readyState == 4)
      {
          if(request.status == 200)
          
          {
              popup(request.responseText);
          } 
      }
  }
 
So is there a problem with the url used above(the href field in the popup 
function)? If so what's wrong with it? Previously the call seemed to be 
successfull as well as the return, since I was previously able to display 
the returned message in an alert. So I wanted to actually display the 
returned data in a popup window, which is my ultimate goal and that is 
where things stand so far in my progress, up to the point to where I 
started getting the current 404 situation that you now see above. Thanks 
for the help.
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/tG_pIDLXKyUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to