User Profile

Collapse

Profile Sidebar

Collapse
burtonfigg
burtonfigg
Last Activity: Dec 6 '15, 09:36 AM
Joined: Mar 6 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • burtonfigg
    replied to change CSS class on clicking hyperlink
    Hi - thanks for the reply. I can see how the effect is made, it was more that I couldn't work out how the HTML of the link changed as soon as the link was clicked to include class="active"...

    Thanks for your reply though :-)
    See more | Go to post

    Leave a comment:


  • burtonfigg
    started a topic change CSS class on clicking hyperlink

    change CSS class on clicking hyperlink

    Hi,

    On this site:
    http://www.spinxo.com/

    Names appear as links - e.g.:

    Code:
    <a href="...the link..."
    rel="nofollow" 
    target="blank">Zesticleum</a>
    If I click a link, the white star changes to orange.

    If I inspect a clicked link with FireBug, the HTML changes to:

    Code:
    <a href="...the link..."
    ...
    See more | Go to post

  • burtonfigg
    started a topic Preview and submit button on same form

    Preview and submit button on same form

    Hi,

    I have this form - test page here:
    http://jimpix.co.uk/ecards/test.asp?id=454 9&tag=type-your-own-message&c=1#swf

    I have a button at the top of the page which I use to post data to the page to refresh the SWF content. I use a button to call the page, rather than the "action" property of the form.

    This is the button:

    Code:
    <button type="button" value="Refresh
    ...
    See more | Go to post

  • burtonfigg
    started a topic Show text message if form field populated

    Show text message if form field populated

    I don't know how hard this is / isn't to do, but I wondered if it is possible to use Javascript / jQuery (I have the library included on the page I need to edit) to display a message below a text input field if the field is populated.

    The reason I need it is that if the user fills the field in, I would like to add an instruction message underneath the field. If the field remains empty, I don't want the field to display.
    ...
    See more | Go to post

  • Question about using ajax to load SWFOject "flashvars" variable

    I have an ecard site. Part of that site allows users to enter their own message which then appears within a flash SWF file.

    This is an example page:

    http://jimpix.co.uk/ecards/4560-type-your-own-message.html

    And this is the example HTML that is used to display the SWF file using SWFObject:

    Code:
    <div id="swfcontainer">
    	<div id="myContent"></div>
    ...
    See more | Go to post

  • burtonfigg
    started a topic Conditionally disable a link

    Conditionally disable a link

    I have a very simple bit of ajax with next / prev links on it (thanks to acoder who helped a lot with getting it to work):

    http://jimpix.co.uk/e.asp

    If I am at the start of the range, is there any way to disable the 'prev' link, and likewise, can I disable the 'next' link if I'm at the end of the range?

    I can pass something back in the script page to say if it's at the start / end of the range, so could...
    See more | Go to post

  • Thank you so much for all of your time and patience. It now doesn't return an error. I have really learnt a lot from your help, as I'm sure many others do, judging by how many posts you have made on this site.
    See more | Go to post

    Leave a comment:


  • Thanks again for your help, and patience!

    Okay, I tried this:

    Code:
    function handleEcardRequest() {
        var id = document.getElementById("theID").innerHTML;
    	// If everything iss okay:
        if(http6.readyState == 4){
        	// Assign the returned value to the document object.
            document.getElementById('ecard_id_label').innerHTML = http6.responseText;
        }
    }
    But...
    See more | Go to post

    Leave a comment:


  • Wow! Thanks - that's a great idea.

    I gave it a try, but the JavaScript error console of FireFox says:

    Error: document.getEle mentById("theID ") is null
    Source File: http://jimpix.co.uk/c.asp#pc
    Line: 20


    If you look on the page:
    http://jimpix.co.uk/c.asp

    You can see I put this line of JS at the top in the head element:

    Code:
    <script type="text/javascript">
    ...
    See more | Go to post

    Leave a comment:


  • Thanks for the reply.

    At the moment, the script page just returns some HTML - e.g.:

    <img src="file1.jpg" />
    <img src="file2.jpg" />
    ...
    <img src="file8.jpg" />

    From what you are saying, would I need to change that so that the script page somehow automatically submits a form, and it that form, I would include a hidden field, which JS can access?...
    See more | Go to post

    Leave a comment:


  • The script page just returns a chunk of HTML.

    1. Calling page has JS code and next / prev links on it.
    2. First time through, the ID sent to the script page = 252.
    3. The script page takes the ID and returns a chunk of HTML - e.g.

    SELECT photo FROM tbl WHERE photoID > "&id&" LIMIT 8

    It returns 8 images by looping through a recordset, using the output from the SQL, and outputting...
    See more | Go to post

    Leave a comment:


  • Thanks for the reply.

    I'm new to this - how can I send the current ID back to the calling page with the javascript on it - I can't work that bit out...

    For example, if I only send the current ID, then on the first run on the page, for example, the currentID = 252.

    If the user presses Next, I can get the next valid ID from the script page running the SQL, but I can't see how I would send that next valid ID,...
    See more | Go to post

    Leave a comment:


  • Problem with AJAX page and next / prev links

    I have a snippet of HTML here:

    [code=html] <p><a title="" href="#pc" onclick="sendEc ardRequest(prev _ecard());">Pre vious</a> | <a title="" href="#pc" onclick="sendEc ardRequest(next _ecard());">Nex t</a></p>
    <p class="ctr"><sp an id="ecard_id_la bel"></span></p>[/CODE]

    And javascript...
    See more | Go to post

  • Sorry David, for wasting your time.
    I've worked it out now. I don't know how, but by working against the page which didn't have the margin problem, I've fixed the original.
    I'm sorry for flitting about all over the place.
    See more | Go to post

    Leave a comment:


  • Done some more digging by comparing the page that works, with the one that doesn't work.

    Problem is this bit of the HTML:

    Code:
    			<div id="ad">
    
    			<img src="../css/img/200.png" class="floatleftclear" style="border:0px;" alt="jimpix" />
    
    				<p>
    					<script type="text/javascript"><!--
    					google_ad_client
    ...
    See more | Go to post

    Leave a comment:


  • Thanks for checking -

    I test with IE6 and FFox 3. On IE6, the margins around the 'sub nav' are too wide.

    I have done a few tests on BrowserCam here:
    http://www.browsercam.com/public.aspx?proj_id=444442

    On the IE6 screenshots, see how the top and bottom margins around the blue nav bar that starts with 'home' are loads bigger than when viewed in FFox or IE8?

    I can't work it out! It's...
    See more | Go to post

    Leave a comment:


  • Thanks for the reply. I tried adding in a display:inline but alas it doesn't fix it. Or, it fixes it for IE6, but not for FFox.

    Could I hack it by having 1 CSS file for IE, and another for FFox, or is that too much hacking?

    Thanks

    Jim
    See more | Go to post

    Leave a comment:


  • burtonfigg
    started a topic Firefox / IE6 Display Issue re. margins

    Firefox / IE6 Display Issue re. margins

    On this test page:
    http://jimpix.co.uk/clients/a/photos/

    I have a "sub navigation" UL below the main navigation UL.

    When viewed in Firefox 3, there is a 10px gap between the subnav UL and the UL above, and the div below.

    When viewed in IE6, that gap is doubled - see this screenshot:
    http://jimpix.co.uk/clients/a/untitled.png

    I can't work out why.

    ...
    See more | Go to post

  • Fixed it. Sorry to waste anyones time.
    See more | Go to post

    Leave a comment:


  • burtonfigg
    started a topic Ajax Script - works in Firefox, not in IE6

    Ajax Script - works in Firefox, not in IE6

    I'm testing an ajax page - this works fine in Firefox:
    http://jimpix.co.uk/clients/a/ecards/defaultx.asp

    Click on any of the links on the right under the 'occassions' or 'others' headings, in Firefox, and thumbnails appear based on what you clicked on.

    Do the same in IE6, and it returns an error:

    Line: 71
    Char: 9
    Error: Unknown runtime error


    This relates to this line:...
    See more | Go to post
No activity results to display
Show More
Working...