Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


Adrian56 last won the day on April 26 2013

Adrian56 had the most liked content!

Community Reputation

2 Neutral

About Adrian56

  • Rank
  1. Thanks team. Nice to get help in context. Antonio, am I correct in thinking that 'toggle' latches i.e. it remembers which state it was at even if you are returning to the selected element having done multiple tasks in-between which affected the elements targeted by the 'toggle'?
  2. Sorry I was in the midst of formatting it in the form - hit a shift key or something - and the post was sent before it was ready or I had re-read it. The var filterB= $(this).attr([id]) was the Boolean I was trying to make work - I still can't but would love to know the error in my syntax so that in the future I can extract the 'id' attribute when in jQuery. The work-around was to use var filterB = $(this).attr('title'); instead.
  3. I was trying to filter the event using the id == 'sunnyvidicon' as my Boolean for 'it's a video'. I still can not get the syntax correct to set a variable var filterB= $(this).attr([id]) - when I set a flag it just told me the var was undefined. so.... I used var filterB = $(this).attr('title'); and it works perfectly! The code is below - any improvements welcome..... .....but I'd still love to know the syntax that gets a useable value out of $(this).attr([id]) - I'm sure I shall need it in the future. Thank you // alt Sunny functions $(document).ready(function(){
  4. In fact $(".sunny a [id=sunnyvidicon]") gets exclusivity in case I 'id' another thumbnail
  5. I've found a selector that works for the camera icon $(".sunny a [id]") I just need the syntax for not([id]) ie excludes $(".sunny a [id]")
  6. Your second point: I only have Safari. I guess I need to try more browsers!
  7. On my working page, the viewer selects the large picture by clicking on the small images(thumbnails) lined up below. One of those thumbnails is a camera icon & link to the iFrame(an embedded video) which replaces the large picture on the web page. To change between still pictures you just click on the next small image - but to leave the iFrame you need to click on the camera icon a second time i.e. it toggles the visibility of the iFrame and main picture element. I am trying to change the UI so that just clicking on the next thumbnail toggles the visibility of the two main elements as
  8. I have set up a picture gallery in which one of the elements is a video in an iFrame. It worked and I was happy until someone said "Why do you have to hit the camera icon again to escape from the video?' Obvious and exactly what I strive towards - really simple UI. I tried to code the simpler interface. I have proved sections of my code by 'commenting out' individual lines. I believe it is the selector filtering which is failing me - AND IT'S DRIVING ME CRAZY! Please can you tell me 'the error of my ways, thank you. The HTML : <div class="twocol_pad30"> <iframe id
  9. I didn't have the terminology to have successfully found that link! The form now behaves totally as expected and the UI has an elegant simplicity, thank you
  10. I have been using page.html#goto to navigate to a specific location and page.html?name=value to transfer values between pages. What I have failed to do is combine both. page.html#goto?name=value and page.html?id=goto&name=value have failed for me. I'm sure the solution is simple - I just cannot find it! Help please
  11. Okay all that you have said in this and 'Trying To Return To Previous Page From A Form' has worked perfectlybut... below is the source code from the formpage being 'posted' to itself. Every thing looks as though it should be fine but the value of the message field 'dddd' is not displayed. Have I hit the edge again - I'm really not doing very well with this message field! <form method='post' action='formpage.php?urlinform=http://localhost:8888/Any_root/anotherpage.html&email=&subject=sssss&message=dddd'> <fieldset><legend>Your Contact Informatio
  12. Absolutely spot on!! I'd added spaces/breaks at that point in the coding for readability. Works perfectly now, thank you. Now I can get on with making the form sticky.
  13. I am trying to confirm entries in the form below using strlen but am stymied by a strange bug/error - in check for entries in subject and message fields else if((strlen($_POST['subject']) == 0) || (strlen($_POST['message']) == 0)) the first condition works perfectly ($length=0) but strlen($_POST['message'] returns $messagelen=5 or more even when nothing is entered?! When you first click in the textarea the cursor positions beyond the start point - which is probably causing the error, but why? Thank you for any help. <?php function spamcheck($field) { //filter_var() sa
  14. <?php $returnurl = htmlspecialchars($_SERVER['HTTP_REFERER']); if(!preg_match('/formpage.php/', $returnurl)) { echo "<p><a href=\"$returnurl\"><img id=\"lftarrow\" src=\"images/LhArrow.graphic.png\" alt=\"Previous page\">Return</a></p>"; } else { echo "<p><a href=\"index.html\"><img id=\"lftarrow\" src=\"images/LhArrow.graphic.png\" alt=\"Home page\">Return to Home page</a></p>"; } ?> I am using this code to provide a path back to the calling page from the page with a form. My problem is that the form ca
  • Create New...