Search Results - VBForums

Search:

Type: Posts; User: PBertie

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Comapre jQuery

    by PBertie
    Replies
    1
    Views
    1,051

    Re: Comapre jQuery

    Have you tried outputting $("#category p") using console.log() to see if html is the attribute you need? I don't know if that's specific to jQuery but isn't it normally innerHTML?
    Depending what...
  2. Re: [Code Example] Sending SMTP Emails using fsockopen()

    Sorry for a late reply but if anyone else is having trouble like this the problem seems to be with the message content. It could be lots of things so without seeing what the message is I couldn't...
  3. Thread: jQuery vs DoJo

    by PBertie
    Replies
    13
    Views
    4,997

    Re: jQuery vs DoJo

    Thanks for the comments, I think its pretty safe to say we'll be taking the Dojo route. Thats not to say its the answer for everyone but for our requirements and future plans the boxes get bigger...
  4. Thread: jQuery vs DoJo

    by PBertie
    Replies
    13
    Views
    4,997

    Re: jQuery vs DoJo

    The application this is for will be over SSL so I was thinking js files served over https weren't cached but been looking into that and if you send the right cache control headers it will be (and the...
  5. Thread: jQuery vs DoJo

    by PBertie
    Replies
    13
    Views
    4,997

    Re: jQuery vs DoJo

    Looking at the file sizes I've run a few tests and they more or less come out the same. The problem is that for Dojo the "UI" part doesn't come as a bulk module. Depending on what type of UI controls...
  6. Thread: jQuery vs DoJo

    by PBertie
    Replies
    13
    Views
    4,997

    Re: jQuery vs DoJo

    The issue is that the documentation is from different sources and varries in quality, how much of an issue this is I'm not sure. I agree with you on the syntax of jQuery though.

    I wasn't saying...
  7. Thread: jQuery vs DoJo

    by PBertie
    Replies
    13
    Views
    4,997

    jQuery vs DoJo

    I know the answer is different depending on the project but I'm trying to find out the differences between these two JavaScript frameworks.

    I've only just started to look at them but from what I...
  8. Re: [Code Example] Sending SMTP Emails using fsockopen()

    Yea you would send the EHLO command and if the response doesn't start with 250 you'll then need to use HELO.
  9. Re: [Code Example] Sending SMTP Emails using fsockopen()

    Its would be the mailserver software running on mail.mydomian.com and its setup. If your confident this wouldn't be changing then yea you can just test and see what works. I can't remember staight...
  10. Replies
    7
    Views
    911

    Re: [RESOLVED] CRON: PHP Page

    Crawlers work by analysing the page for links and adding them to its list of pages to visit. You can specify noindex/nofollow as instructions to crawlers (e.g. robots.txt) but you can't rely on them...
  11. Replies
    7
    Views
    911

    Re: [RESOLVED] CRON: PHP Page

    Also if for some reason you needed it publicly accessing, for example if passing a particular parameter in showed debug info, then just giving it a random name would be fine. If no pages link to it...
  12. Re: [Code Example] Sending SMTP Emails using fsockopen()

    I've actually just noticed the code I posted for the CronJob relies on a slightly newer version of the function, mainly that it passes in a flag which switches the MIME type between Plain or HTML....
  13. Re: [Code Example] Sending SMTP Emails using fsockopen()

    Behind the scenes they’ll do more or less the same thing but the libraries will be able to cope with different situations this code wont. To use something like this is a lot better if you want to...
  14. Re: [Code Example] Sending SMTP Emails using fsockopen()

    Depends on the usage, if you want you can just ignore it and only check the SUCCESS element to check it worked. In debug mode I would check if it was successful and if not print the array to the...
  15. Replies
    2
    Views
    612

    Re: Please help with SQL query

    I personally would have stored the dates as datetime fields rather than int but you could also use the php mktime() function.

    $query .= "WHERE `date` BETWEEN ". mktime(0,0,0,8,21,2011) ." AND "....
  16. Replies
    7
    Views
    769

    Re: Write to file problem - very weird.

    Showed 1 (true) and updated the file twice or just once? If twice then it suggests the url was not correct the other times.
  17. Replies
    7
    Views
    769

    Re: Write to file problem - very weird.

    What happening with this code?
    Id expect it will either output true and write to the file twice or false and not write only once.
    If you get false there is something wrong with the input string....
  18. Replies
    7
    Views
    769

    Re: Write to file problem - very weird.

    How about:

    <?php
    $s = 'Vital';
    $shout_file = $s.'.php';

    file_put_contents($shout_file, $chat_line, FILE_APPEND);
    ?>
    If that works then I'm thinking your input isn't strictly "Vital". Try...
  19. Replies
    7
    Views
    769

    Re: Write to file problem - very weird.

    Try:

    <?php
    $s = $_GET['s'];
    $shout_file = $s.'.php';

    file_put_contents($shout_file, $chat_line, FILE_APPEND);
    ?>
    There wasn't a ; on the end of the line too but I'm guessing that was a typo...
  20. Replies
    4
    Views
    817

    Re: Highlighting Code

    Yea that GeSHi is really good, had to change the PHP syntax file a bit but not much. They had the <?php tag grouped with Function & Global, but ?> was in with symbols :confused: So I put the <?php in...
  21. Replies
    4
    Views
    817

    Re: Highlighting Code

    Thanks,
    I had found an example that was pretty buggy and was working through it to do something similar. The idea was pretty simple behind it, parsed the code in blocks. So for html you would treat...
  22. Replies
    4
    Views
    817

    Highlighting Code

    I've been looking at ways to highlight code on my website. I've sorted the php using the built in highlight_string() function.
    Now I'm looking to do HTML, CSS & JavaScript. I looked at the PEAR...
  23. Re: Get the position of the cursor in a textarea

    Cheers thats sorted it. I did see a post mentioning something similar about using the onmousedown event but didn't try it. Bit weird how the focus doesn't matter when there's at least one character...
  24. [RESOLVED] Get the position of the cursor in a textarea

    Hi,
    I've done the following code to place formatting tags around code in a textarea. It works perfect in Firefox but in IE it only works if some text is selected.

    How do I get the positon of the...
  25. Thread: W3Schools

    by PBertie
    Replies
    7
    Views
    1,951

    Re: W3Schools

    Interesting read, found myself nearly half way down the examples.

    That Sitepoint looks good, unfortunetly W3Schools has such good search engine ratings its too easy to get straight to the page you...
  26. Replies
    5
    Views
    1,212

    Re: [RESOLVED] [css]tab

    Just as a side note, you cant use target="_blank" in XHTML Strict (Well you can but its not valid). The target attribute is still in the DOM so you have to set the value using javascript.
  27. Re: exit a php function in middle and continue other lines of code

    Am I write assuming you want something like this:


    <?php
    abc1(false);
    echo "HELLO";
    abc1(true);
    echo "WORLD";

    function abc1($doIt)
  28. Replies
    8
    Views
    1,761

    Re: email validation [ javaScript ]

    The RegEx that I use is below, it copes with most common email addresses and pretty safe for all personal addresses. It allows all domains which are 2 characters then another 2 characters, but for...
  29. Replies
    18
    Views
    2,894

    Re: [RESOLVED] Facebook app iframe help

    It looks like the problem is that your facebook app is the page:

    <FRAMESET rows="24&#37;, 80%" frameborder="0">
    <FRAME name="f_top" src="top.php">
    <FRAME name="f_bottom"...
  30. Replies
    18
    Views
    2,894

    Re: [RESOLVED] Facebook app iframe help

    Yea sure.
  31. Replies
    18
    Views
    2,894

    Re: [RESOLVED] Facebook app iframe help

    The two red text need to be changed to match your site as you know. The Green text I've changed the values to false as status means it tries to check the users access straight away but you are only...
  32. Replies
    18
    Views
    2,894

    Re: [RESOLVED] Facebook app iframe help

    Channel.html should only contain 1 line:
    <script src="http://connect.facebook.net/en_US/all.js"></script>

    To add a timer that resises the window after 100ms and then does it again after 1 second...
  33. Re: If function fsock open error then echo "Error"

    Use @fsockopen, it will suppress the error and then your already evaluating $open so change return false; for your error message.
  34. Replies
    18
    Views
    2,894

    Re: [RESOLVED] Facebook app iframe help

    Did you replace "YOUR APP ID" with your App ID? Also the "http://WWW.MYDOMAIN.COM/channel.html" should be a html file on your website that includes the follwoing code:
    <script...
  35. Replies
    20
    Views
    2,129

    Re: [CSS/JAVASCRIPT]Calendar

    Sorry my mistake. Out of interest what sort of situations do you use your calendar in?
  36. Replies
    20
    Views
    2,129

    Re: [CSS/JAVASCRIPT]Calendar

    Haven't used my site for a while but just uploaded this example to it: http://www.etaxibooker.co.uk/CalendarDemo.htm
  37. Replies
    18
    Views
    2,894

    Re: [RESOLVED] Facebook app iframe help

    Are you using the javascript SDK? If so check out the very bottom of this page:
    https://developers.facebook.com/docs/reference/javascript/
    Use the FB.Canvas.setSize if you know what size you need....
  38. Replies
    1
    Views
    919

    Re: select node within Nodelists

    I think your xml file should be structured with description, weight, class, rate and charges as children of the typeCharge, like:
    <typeCharge name="FS">
    <description>LTL FUEL SURCHARGE OF...
  39. Replies
    20
    Views
    2,129

    Re: [CSS/JAVASCRIPT]Calendar

    I've uploaded a zip with all the files needed (.js, .css and .png's) also there is a html file which demonstrates it. Should give you a good start.

    The html file should explain its self quite well...
  40. Replies
    20
    Views
    2,129

    Re: [CSS/JAVASCRIPT]Calendar

    What do you have so far?

    I did one that uses a div positioned absolutley then I rewrite the days in a table each time you move through the months, screen shot included:
Results 1 to 40 of 55
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.