Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. This is a JS problem. I imagine the problem lies with the function you're calling on submission: Notice the return before that call; that means if the function returns false it'll prevent the form being submitted.
  2. http://www.google.co.uk/search?q=how+to+build+a+javascript+wysiwyg+editor
  3. AJAX can only make requests to pages on the same server, whatever framework you use. You'll need to use a server-side language in order to get the feed. Yql I've never used, or particularly familiar with, but I imagine you request an external script from their server using the <script> tag, that then performs a call from their server to the target URL and hands back the data as the script.
  4. Adam

    Hyperlinks

    If you use the HTML or XHTML transitional doctype within your frame page, you're able to use the target="_blank" attribute with no need for JavaScript.
  5. document.forms["form1"].URL.text = document.getElementById("linkingframe").src .text isn't a valid property. Do you mean .value?
  6. Have a read through this post.
  7. Have you tried echoing them out..? echo $xml->avatarMedium; I think the reason you're unable to see them with print_r() is because they're classed as SimpleXMLElement objects too; which print_r() doesn't seem to be able to recursively print through.
  8. The main problems I see with this are that the titles have to be static, you couldn't have dynamic content (i.e. from a database) and vary the title depending on what the user's viewing. You'll also have to keep modifying it should you ever rename a file, make structural changes, etc. If you had two files with the same name, but one within a sub-directory, you're only going to get whichever's first in the array. Plus there'll be a lot of repetition if you want some pages with the same name. Of course if your website is only small - you never mentioned the size - this won't be such a problem.
  9. How do you display your header, is it just a simple include for each page? If so there's no point adding unnecessary complexity to it. You may as well just set a variable before the include then check for that in the template: $title = 'Page Name'; require 'path/to/header.php'; In your header: <title>Company Name - Slogan<?php if (!empty($title) echo '- ' . $title; ?></title>
  10. function logincheck(){ if (empty($_SESSION['username'])){ echo " <SCRIPT LANGUAGE='JavaScript'> window.location='index.php'; </script> "; exit(); }} That is in my functions file. Are you being redirected to index.php?
  11. Sounds like you're wanting to create a directory site; but I'm not sure you'll find pre-built software as specific as you want.
  12. Actually in all major browsers if the action attribute is empty or not passed it'll default to the same page. @dean7 Since your update query code contains no form of redirect, the error must be somewhere else. What does logincheck() look like?
  13. That'll be because the .selectionStart property equals 0. Your IF expression evaluates to false because 0 == false. An easy way in your situation to get around the problem would be to just check if the property is defined, as opposed to true: if (obj.selectionStart != undefined)
  14. Weirded me out a bit that video. Plus I forgot I'd entered my home town at the start and when pictures of it started popping up I was like whaat the..? Was good though, bit of a waste of time, but good. The video clips, Google maps data, etc.
  15. When you go to the page there's a JavaScript error: Looking through your code I can't find anywhere it's defined either.
  16. Why'd entering the ID fail? <iframe class="youtube-player" type="text/html" width="566" height="266" src="http://www.youtube.com/embed/<?php echo file_get_contents('/path/to/file.txt'); ?>" frameborder="0"> </iframe>
  17. http://news.sky.com/skynews/Home/World-News/A-100km-Long-Traffic-Jam-In-Beijing-Enters-Its-Ninth-Day-And-Could-Continue-For-A-Month/Article/201008415702670?lpos=World_News_First_Home_Article_Teaser_Region_4&lid=ARTICLE_15702670_A_100km-Long_Traffic_Jam_In_Beijing_Enters_Its_Ninth_Day_And_Could_Continue_For_A_Month
  18. As covered many times on these board, whilst good to have some form of qualification, it doesn't mean anything without the experience to back it up. I'd try to gain some freelance work and build up a portfolio for yourself; they'll recognise that a lot more.
  19. I think everybody I've ever known buy one has done the same thing. Maybe gets used once, twice a year at dreadful family evenings or something? To kill the awkward conversation about your Mother's work mates eating her food from the fridge or something... Brilliant. Glad I don't have one.
  20. Set the include path to the document root (and to the current include path), so when you include a file you always specify it from the document root like: require 'includes/somefile.html'; .. No matter where you are.
  21. If they layout requires a lot of space then the browser will add scrollbars? Your layout should be flexible enough to handle it, and if it's not then you've done it wrong.
  22. No I'm afraid not. You need JavaScript for it's event handling (i.e. 'onkeyup') to be able to trigger the code at the right time.
  23. The browser only suggests what you've entered before; the only control over that you have is to disable it with the autocomplete attribute. You could use JavaScript though to create the suggestions? jQuery a couple of plug-ins that would make things a lot easier for you too.. http://docs.jquery.com/Plugins/Autocomplete
  24. Assuming none of the queries have a semi-colon followed by a line break in them. Have you tried it?
  25. Can we see the query?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.