User Profile

Collapse

Profile Sidebar

Collapse
BobBlock
BobBlock
Last Activity: Apr 11 '10, 09:54 AM
Joined: Jul 3 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Making successive jQuery.load()s in nested pages work

    The main page ("parent.htm l") has a link that ajaxloads a page ("page1.html ") into a div ("targetdiv" ) in the main page, like so:
    parent html:
    Code:
    $("#targetdiv").html(loading).load('page1.html');
    This works fine and "page1.html " is loaded into "targetdiv" .

    The "page1.html " also has a link in it that is supposed to ajaxload another page ("page2.html ")...
    See more | Go to post

  • Thank you again, acorder. Cheers....
    See more | Go to post

    Leave a comment:


  • So I gave every div in the group a unique ID, doing away with the "class"es alltogether. This made the script happy!

    Does this mean id+class combinations cannot be used in JS in general, or is this peculiar to the script in question?

    Thank you and cheers.
    See more | Go to post

    Leave a comment:


  • acoder,

    As "target" has to resolve to "#shadow-container1 .container", the # alone does not work.

    I don't understand what you mean by "give a link to the Ajax-tab code that you're using".
    See more | Go to post

    Leave a comment:


  • BobBlock
    started a topic CSS "id" and "class" syntax in javascript

    CSS "id" and "class" syntax in javascript

    I have a box defined like this:

    Code:
    <div id="shadow-container1">
    <div class="shadow1">
    <div class="shadow2">
    <div class="shadow3">
    <div class="container">
    the innermost "container" is where content appears.

    I have to pass the id of "container" to the javascript variable parameter...
    See more | Go to post

  • BobBlock
    replied to How to implement an Ajax script?
    acoder,
    Thank you for responding.

    The HTML code for the page would be meaningless because there is as yet no link associated with the script in it.

    The reason being I haven't been able to figure out how to construct such a link; I don't know what to include, in what form and order, etc.

    Can you give me a working link example that will point the script to the page we want to load, in the div we...
    See more | Go to post

    Leave a comment:


  • BobBlock
    started a topic How to implement an Ajax script?

    How to implement an Ajax script?

    This is a script that, when a link is clicked, will pull a page from somewhere and insert it in a div in the current page. Pretty simple, yes, but being the thick head I seem to be, I can't figure out how to implement it.

    i.e. how to formulate the link so that it will point the script to the page we want to load in the div we want?

    The script:
    Code:
    $(document).ready(function() {  
    
    	// Check for
    ...
    See more | Go to post
No activity results to display
Show More
Working...