Hi wrog and Anonymous Monk;

Your security remarks were helpful. I asked about cross domain, just for info, and won't be actually implementing it.

What I want to do- I have demo project, which contains navigation links in header section, three divs in mid section, and footer with message. Whenever user clicks on links, content related to that link get generated in second div from another html file. And now at this point I want URL to be changed to www.homepage.com/navigation_link_name.

Making user feel, that he is navigating tabs in a application.

Is this achievable, or some thing is wrong with this kind of approach.

Second, is XMLhttp+JavaScript = Ajax, then how I can do http related things done at this ink using CGI::Ajax.

http.open('get', 'http://www.myhostname.com/cgi-bin/myscript.pl?noca +che='+now.getTime()); var response = http.responseText; setTimeout('wipeout()', 2000);

I just pass out url to method, I get response, then I can print out whole document, or parse required element content.

This is close to what I want to do. If I click CSS, or javascript or other link then upper portion remains same, content below navigation links changes. Also at the same time URL also changes.


In reply to Re^2: CGI::Ajax. Getting content of second.html file to resultant div of one.pl (same/cross domain) by msinfo
in thread CGI::Ajax. Getting content of second.html file to resultant div of one.pl (same/cross domain) by msinfo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.