www.webdeveloper.com

Search:

Type: Posts; User: rpg2009

Page 1 of 7 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    931

    As pointed out having the rendered HTML would be...

    As pointed out having the rendered HTML would be more helpful.

    A re-write of your code with comments. Could be improved. Guesswork at this point.


    // take code out of the global document space...
  2. Thread: jQuery 2 slow?

    by rpg2009
    Replies
    4
    Views
    1,577

    I don't use frameworks yet myself, but how do...

    I don't use frameworks yet myself, but how do other engines compare. Sly, YUI, or just sizzle standalone?

    With YUI you can pick and choose the modules you need can't you?

    RPG
  3. Replies
    9
    Views
    2,291

    just for a bit of practice. hope you don't mind ...

    just for a bit of practice. hope you don't mind

    Javascript


    (function(doc){
    var oFF = { A : ['B','C','D','E','F','G','H'],
    B : ['A','G','H'],
    C :...
  4. Replies
    3
    Views
    1,575

    A bit of fun. Very basic and very rough around...

    A bit of fun. Very basic and very rough around the edges though.


    (function(global, doc){
    // Dummy Constructor
    var Jcopy = function(selector, root){
    return new Jcopy.init(selector,...
  5. Replies
    4
    Views
    1,762

    The problem starts here line 4 line 4 :...

    The problem starts here line 4

    line 4 : $("a#demo").fancybox({....

    Looking through your source with a find for 'demo'. The phrase isn't found.

    So it appears there isn't an anchor element...
  6. Replies
    4
    Views
    1,762

    A stab in the dark. Looking at your source you're...

    A stab in the dark. Looking at your source you're including Jquery after allwebscripts. So allwebscripts try's '$(document)' before jquery has loaded.

    Can you move allwebscripts to a line after...
  7. Replies
    14
    Views
    2,454

    Nice one! Chuffed it worked out mate.

    Nice one! Chuffed it worked out mate.
  8. Replies
    14
    Views
    2,454

    It's there. var sid = '*' + ...... Good luck:)...

    It's there. var sid = '*' + ......

    Good luck:)

    RPG
  9. Replies
    14
    Views
    2,454

    Okay out of my depth here. Different rules for...

    Okay out of my depth here. Different rules for applets. And a brief read says that your original method (javascript entities?) should have worked but isn't supported in IE?

    How about this then?
    ...
  10. Replies
    12
    Views
    8,357

    JSLint's an extremely handy tool. I've tended to...

    JSLint's an extremely handy tool. I've tended to switch on assume browser anyway, without really knowing what it does. Thanks for that info.

    Another take as you possibly want to drag your code out...
  11. Replies
    14
    Views
    2,454

    Well after a bit of trial and error I think I...

    Well after a bit of trial and error I think I might be a bit closer to a solution. 'Famous last words'

    If you look at the code that goes into frameworks like jquery you'll see a fix for IE and...
  12. Replies
    6
    Views
    2,158

    Also Kever's picked up on (.*), which will...

    Also Kever's picked up on (.*), which will greedily grab everything and then backtrack. Not ideal and might end up with an unintended match.

    .*? is better. The trailing non greedy? prevents that.
  13. Replies
    14
    Views
    2,454

    I just tested the code, substituting...

    I just tested the code, substituting window.location.href with 'http://www.sitetobeiframed.com?username=anybody'

    In chrome the generated html for param reads
    <param name="SID" value="*anybody">
  14. Replies
    14
    Views
    2,454

    I might have the wrong end of the stick, and it...

    I might have the wrong end of the stick, and it won't be the first time, but you did see this


    var sid = document.getElementsByName('SID')[0];
    sid.value = "*" + getUrlVars()["username"];

    This...
  15. Replies
    10
    Views
    2,116

    nevermind.

    nevermind.
  16. Replies
    10
    Views
    2,116

    Tcobb, Didn't my post above cover...

    Tcobb,

    Didn't my post above cover that:confused:


    function trim(strg) {
    return strg.replace(/^\s\s*/,'').replace(/\s\s*$/, '');
    }

    function getWithAttribute( attr, name, root ) {
  17. Replies
    14
    Views
    2,454

    By no means an expert but would something like...

    By no means an expert but would something like this work


    <html>
    <head>

    </head>
    <body bgcolor="#FFFFFF">
    <body>
    <div style="width: 100&#37;; text-align: center;">
  18. Replies
    19
    Views
    2,722

    I had considered that with name : 'undefined'....

    I had considered that with name : 'undefined'. John Doe does the trick.



    Confusion of terminology on my part regarding multiple inheritience. I was referring to deeper chains. Now you mention...
  19. Replies
    19
    Views
    2,722

    I think you're getting it onefootswill. ...

    I think you're getting it onefootswill.




    function F(){}; // constructor
    F.prototype = proto; // prototypal inheritence
    return new F(); // new??

    A few experiments using my functions above.
  20. Replies
    19
    Views
    2,722

    A small edit var extend = function ( obj, to...

    A small edit


    var extend = function ( obj, to ) {

    var that = to || this,
    prop;

    for ( prop in obj ){
    if ( obj.hasOwnProperty(prop) ) {
  21. Replies
    19
    Views
    2,722

    Fair enough:D Saw the familiar functionF(){} and...

    Fair enough:D Saw the familiar functionF(){} and was just going by memory. Nice to go over these thing from time to time though.

    Regards Object.create I'm sure the mdc page used to have...
  22. Replies
    19
    Views
    2,722

    A few other methods. You could use inherit ...

    A few other methods.

    You could use inherit


    function Person(name){
    this.name = name;
    }

    Person.prototype.getName = function(){
  23. Replies
    3
    Views
    1,495

    Or this maybe? var strg =...

    Or this maybe?


    var strg = 'addfriend\.php\?id=1\\\" |||||| addfriend\.php\?id=2\\\" |||||| addfriend\.php\?id=3\\\" ';

    var regEx = /\?id=(\d+)/gi,
    match;

    while((match =...
  24. Replies
    10
    Views
    2,116

    If you do really need to target multiple id this...

    If you do really need to target multiple id this should do the trick.


    <!doctype html>
    <html>
    <head>
    <title>Get with Attribute</title>
    </head>
    <body>
    <p id = 'id_1'>Some Text1</p>
  25. Replies
    11
    Views
    2,253

    An object would make more sense and is clearer. ...

    An object would make more sense and is clearer.

    If you have to use arrays as you're just learning about them. Then you could maybe try something like this? (Purely as a learning exercise)


    ...
Results 1 to 25 of 153
Page 1 of 7 1 2 3 4
HTML5 Development Center



Recent Articles