www.webdeveloper.com

Search:

Type: Posts; User: web_bert

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    736

    try this: $.post(URL, 'quizData=' +...

    try this:




    $.post(URL, 'quizData=' + quizData, function(data){
    alert(data);
    }, "json");
  2. So this is why your speakers are not working, you...

    So this is why your speakers are not working, you need to make sure the img element is in the dom, with the id sp1 before the document.getElementbyId code is invoked.
  3. an alert will show a message box with some...

    an alert will show a message box with some content in it. It is the most basic form of debugging for JavaScript, try this:




    var speak1 = document.getElementById( 'sp1' );
    alert( speak1);
  4. your HTML element attributes should to be...

    your HTML element attributes should to be enclosed in double quotes. If you alert speak1 what do you get?
  5. Replies
    7
    Views
    7,368

    I am guessing here, but I think this might work:...

    I am guessing here, but I think this might work:




    function initMenu() {
    var hash = window.location.hash.substring( 1 );

    if( hash ) {
    var accordItem = $( '#menu li a#' + hash );
  6. you need to get a reference to the node in the...

    you need to get a reference to the node in the dom and then instead of using document.[name].src you can use ref.src:




    var speak1 = document.getElementById( 'sp1' );
    speak1.src =...
  7. Replies
    7
    Views
    7,368

    if you register a function to be called when the...

    if you register a function to be called when the document is loaded you can check the hash in the url and open the correct accordion.

    Get the hash with:



    var hash =...
  8. Replies
    2
    Views
    579

    the following code will do what you want: ...

    the following code will do what you want:




    function foo(){
    this.a = 1;
    this.x = null;
    }
  9. Replies
    1
    Views
    450

    You can use a modal to display the image, if you...

    You can use a modal to display the image, if you don't want them to be able to click anything else. You can then use window.setTimeout to hide the modal after 5 seconds. eg:



    ...
  10. Replies
    6
    Views
    1,577

    To get back to the original question, try this: ...

    To get back to the original question, try this:




    function SetListener(){
    var Fields=document.getElementsByTagName("INPUT");
    for(var i=0, j=Fields.length;i<j;i++){
    ...
  11. Replies
    5
    Views
    1,008

    syntax error: function getTime() { c1 =...

    syntax error:




    function getTime() {
    c1 = new Image(); c1.src = "http://flyerflies.com/images/numbers/1c.gif";
    c2 = new Image(); c2.src = "http://flyerflies.com/images/numbers/2c.gif";
    c3 =...
  12. Replies
    5
    Views
    1,008

    You should avoid using eval at all costs. This...

    You should avoid using eval at all costs. This poses a security risk, similarly, passing a string to setTimeout or setInterval essentially uses eval, so try only sending function references or use...
  13. Replies
    1
    Views
    2,713

    jQuery http://www.quirksmode.org/js/introevents.html

    http://www.quirksmode.org/js/introevents.html
  14. try this: function validate_form ( ) {...

    try this:



    function validate_form ( )
    {
    var valid = true,
    form = document.form;

    if ( form.fullname.value == "" ){
  15. Replies
    1
    Views
    560

    var Wzor = new RegExp("r?.*" + val + ".*?");

    var Wzor = new RegExp("r?.*" + val + ".*?");
  16. use JSON: { 'page1' : 'HTML here', ...

    use JSON:



    {
    'page1' : 'HTML here',
    'page2' : 'HTML here'
    }
  17. Thread: Executing

    by web_bert
    Replies
    3
    Views
    664

    You will need to capture the variable in a...

    You will need to capture the variable in a closure, so that you can get at the value. To do this you will need to execute an anonymous function:



    for (id=1; id<=5; id++;){
    ...
  18. Replies
    3
    Views
    800

    You will need to set your offset to -240px (ish)...

    You will need to set your offset to -240px (ish) - to offset the first pane out of view. I would imagine that would would need to update the HTML/JS to let it know that you are starting on the second...
  19. Replies
    3
    Views
    800

    I think your 'scrollWidth' should be about 240px...

    I think your 'scrollWidth' should be about 240px - whatever the width of the carousel 'window' is.
  20. jQuery You just need to store a reference to 'this' in...

    You just need to store a reference to 'this' in side the correct scope, closures will allow you to access the reference:



    $.fn.shortList=function(){
    var text=this.text(),
    that = this;
    //...
  21. Replies
    4
    Views
    772

    function skipchallenge(name) { if...

    function skipchallenge(name)
    {

    if (name.match(/\[\(\sS\s\)\]/) return true;

    if (name.match("CLOSED")=="CLOSED") return true;
    if (name.match("VOID")=="VOID") return true;
    if...
  22. Replies
    5
    Views
    601

    try this: var input_elements =...

    try this:



    var input_elements = document.getElementsByTagName('input'),
    input_count = input_elements.length,
    i = 0;

    document.write(input_count);
  23. Replies
    2
    Views
    543

    your if should be written like this: if(...

    your if should be written like this:



    if( (form.fromZipcode.value == "") && (form.fromCountry[0].checked == true || form.service[1].checked == true) )



    Notice the change of brackets.
  24. Replies
    4
    Views
    916

    If the value of write_message is a string then: ...

    If the value of write_message is a string then:



    write_message = write_message.replace("<script ", "<script onlaod=\"myfunction('"+ write__message +"')\" ");


    You will need to escape and '...
  25. does the popup element have a style of...

    does the popup element have a style of position:absolute?
Results 1 to 25 of 129
Page 1 of 6 1 2 3 4
HTML5 Development Center



Recent Articles