Troy III 272 Posting Pro

According to their statistics there are about 6 million websites that use JQueryUI.

We should bare in mind that,
-there are also as many clients times 10, who discard their cache upon app close by default.

cereal commented: true +11
Troy III 272 Posting Pro

Troy could you explain that again ? :)

I just did! :)

function check_alert (**pcheck**) {
window.alert("You make $"+**pcheck**);
}
var **paycheck** = 1200;
check_alert(**paycheck**);

// alert val: "You make $1200"

you have passed the paycheck value to the function argument named pcheck which will now carry this (1200) value to your alert message as it aleready did.
p.s.: You are not passing 'names' but 'values' of variables. The variable name is just a handle to its value. 'paycheck' and 'pcheck' are now handling the same value.

Troy III 272 Posting Pro

jQuery is a JavaScript library designed to simplify the client-side scripting of HTML.

or to better say uglify it :)

Troy III 272 Posting Pro

Every time I press 'enter' within this paragraph, a new paragraph is created, rather than a line break tag (<br>). How can I force a line break tag to be created instead of a paragraph element?

Have you tried SHIFT+Enter for a new line instead of a new paragraph?

Troy III 272 Posting Pro

How can the function make an alert with the variable pcheck when the global variable is named paycheck, I'm confused ?

Well, argument names of the function would be useless if they wouldn't be able to receive value from other pointers or variables.
It works because you've just passed the value of 'paycheck' varible to the 'pcheck' argument name which will now pass that *value to the *function using it.

It's the same as if you've used a straitforward input to the named argument of the function, like:
check_alert(1200);

Troy III 272 Posting Pro

if your css works on FX, and/or Ch (or similar), no 'debug' is needed since ie11 is 100% css3 conformant

Troy III 272 Posting Pro

The varukorg is in the

<td width="100%" height="17" **class="infoBoxHeading" **valign="middle"><a href="http://www.amberbird.se/shopping_cart.php">Varukorgen</a></td>

and it only has a classname [.infoBoxHeading] that you can adddress directly on your CSS...
I was unable to visually locate "SÖK"

Troy III 272 Posting Pro

Why would you need to do that?
IE11 passes the Acid3 test by 100%

Troy III 272 Posting Pro

You should try

function addLink(){
document.execCommand('creatLink');
}

select some text of the document, click your addlink button and provide the location on the presented UI before hiting OK

Troy III 272 Posting Pro

An implicit extraction instead of matching the data of interest would be

var results = "'1962' '1963' '1964' '1965' '1966'";
    results.match(/\w+/g);

>>[object Array]["1962", "1963", "1964", "1965", "1966"]
Troy III 272 Posting Pro

...that should fix it (JorgeM's advice)
and here is a ready to copy-paste (corrected) script...

<script type="text/javascript">

function checkEmail()
{

    var email = document.getElementById('xemail');

    //alert(email);

    var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

    if (!filter.test(email.value))
    {
    alert('Please provide a valid email address');
    email.focus;
    return false;
    }
}

</script>
Troy III 272 Posting Pro

Sir I am using these codes to clear all textboxes in form

Have you tried the reset button?

<form...>
.
.
.
<button type="reset" value="reset">clear</button>
</form>

or scripting:

document.forms[0].reset();
Troy III 272 Posting Pro

That's why you should be learning some basic JavaScript, so that when you start understanding JavaScript, you will instantly become aware of the fact that: AJAX,JSON and jQuery are nothing but >>JavaScript<<

Troy III 272 Posting Pro

This is my pre-AJAX (1997-, technology) a live demo at: http://www.aeneidas.com/

Troy III 272 Posting Pro

How will it know/realize who's data to fill in the given web page form?

Troy III 272 Posting Pro

You should try adding the "bold" part at "this" point of your code:
... document.getElementById('myLuckyPost').appendChild(a); a.click(); } </script> ...

Troy III 272 Posting Pro

have you tried elem.style.display = "block"; instead of "tr"?

Troy III 272 Posting Pro

The extra equal sign is there for static-Type comparison, i.e.: to avoid the literal 0 (zero) to evaluate as a Boolean false.

Troy III 272 Posting Pro

[your input field].value

Troy III 272 Posting Pro

A working example at jsfiddle
http://jsfiddle.net/CVYFN/

Troy III 272 Posting Pro

NetSite, I think you'll need to recheck your algo', and probably rethink your strategy completely

Troy III 272 Posting Pro

not happy to say or tell this but I suspect it is being injected by your provider.

Troy III 272 Posting Pro

that's most probably because you are using a "while" loop...

Troy III 272 Posting Pro

In some crucial coding scenarios, jQuery neglects our need to be giving error feedback, moreover it leans towards suppressing them completely, which is wrong!

Troy III 272 Posting Pro

underneath Pandora lies a highly sophisticated A.I., developed and refined for almost two decades.

Troy III 272 Posting Pro

How about not trying to attach events to elements before they are created?!
Put the script that manipulates the DOM where it belongs: towards the end of the document body.

(the working code)

<!DOCTYPE html>
<html>
<head>

<title>Untitled Document</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

<style>
.none {
    display:none;
}
</style>
</head>

<body>
<input type="radio" name='thing' value='valuable' data-id="bank" />Running Event
<input type="radio" name='thing' value='valuable' data-id="school" />Other challenges
<div id="school" class="none">
<label for="name">What was the activity called?</label>
                <select id = "myList">
               <option value = "1">Virgin London Marathon</option>
               <option value = "2">Round the Island cycle challenge</option>
               <option value = "3">Kilimanjaro trek</option>
               <option value = "4">Thames Path Challenge</option>
             </select>


</div>
<div id="bank" class="none"><label for="name">What was the activity called?</label>
                <select id = "myList">
               <option value = "1">Pancake Making</option>
               <option value = "2">Egg and spoon race</option>
               <option value = "3">Sack race </option>
               <option value = "4">Three leg race</option>
             </select></div>
<script>

$(':radio').change(function (event) {
    var id = $(this).data('id');
    $('#' + id).addClass('none').siblings().removeClass('none');
});
</script>
</body>
</html>
iamthwee commented: nods +14
Troy III 272 Posting Pro

-Sorry maestro, your code ain't working on either one...

  • Firefox says:: TypeError: tab[i] is undefined
  • Chrome says:: Uncaught TypeError: Cannot read property 'className' of undefined
  • Explorer says:: Unable to get property 'className' of undefined or null reference

My question to you is why are you using a dumb statement like "Javascript not working in IE" instead of describing the problem you are having with firefox and chrome, "which are working fine" - instead?

Troy III 272 Posting Pro

have you tried screen.width & screen.height
or document.width, document.height ?

or even top.document.width...

Troy III 272 Posting Pro

Congratulations JorgeM,
make sure you have a good time. :)
Regards.

JorgeM commented: Thanks Troy III ! +0
Troy III 272 Posting Pro

thank you for your point of view.

Troy III 272 Posting Pro

(With experience) we get more pragmatic, reliable and conventional, but not better - "better" requires creativity, originality and so on...

when you are experienced you tend to avoid trials and go strait to results.

Troy III 272 Posting Pro

Perhaps if you find a job that actually interests you ...

Troy III 272 Posting Pro

hapiscrap why would you waste your time ( and ours ) ?

Troy III 272 Posting Pro

I think that
people are not used to getting used to

Troy III 272 Posting Pro

There are lot's of occasions when I happen to be boldly notified that:
"this thread is { [xx] months : years} old"
etc etc

I don't think that people are that blind or illiterate to not see or understand that a solved ie 5 year old thread, has a five years old solution!
Every knowledge seeking surfer will come to that post with backward compatibility in mind and make the best out of it combining the acquired old working code with modern most recent methods and practices.

Troy III 272 Posting Pro

Never had issues posting with IE.

Neither did I, ...in the past.
The question is "can you confirm that it still works as it did before these changes came to be made?"

-----------
p.s.:
For instance when I hover over the main menu in IE, nothing gets expanded!
Why is that?

(Of course) I have a pop-up blocker fully enabled, [and to tell you the truth: it's the only popup blocker that actually works - all other browsers fail to block certain popups, if any] but why would it affect something that it should not?!
I don't know...

Troy III 272 Posting Pro

Ban mouseovers. They are not accessible. They cause problems with people who have dyslexia.

what problems?
should we also ban the use of colors, because there are people with achromatopsia?!

Troy III 272 Posting Pro

this old javascript code snippet is about 5-6 years older than stated...

Troy III 272 Posting Pro

I'm using IE 9,10 & 11 but am not being able to post a thing!
(This is so almost ever since the editor was replaced/updated or something; (Not sure of exactly when!). But;
Since then, I'm not being able to use the drop-down menu of the site to navigate sub-sections of Daniweb or write a reply or answering post while on Explorer 9, 10 or 11, so my worst guess is that it has something to do with this fact along all other mentioned so far...

But again, It is possible that this is related to my (somewhat stronger) security settings, and I really hope, my existing security settings are to be blamed for this reduced functionality. i.e.: inability to post new messages, etc., etc.

p.s.: there is some truth in guessing that the drop in activity is related - and maybe - approximately equal to the rationale of IE market share!

[hope this info helps some bit]
My kind Regards.

Troy III 272 Posting Pro

I still don't understand why not use a rich-text editor browser api ?

Troy III 272 Posting Pro

There is no "best practice" to code images into a web page, there's only a correct syntax of doing it!
Which is the image tag: <img src="...">

A correct code/syntax is always the best practice.

Troy III 272 Posting Pro

:) good work cgull

Troy III 272 Posting Pro

Using a correct doctype will fix a drawing error provoked by instructing the browser to render HTML code as if xhtml.

Troy III 272 Posting Pro

Site is slow due to jQuery

but of course it is!

Troy III 272 Posting Pro

your question on:

How to call HTML onClick event onLoad by JS

has been answered!
You should mark the tread "Solved" and start a New Thread with you new question!

Troy III 272 Posting Pro

So you want a simple solution huh?
Here it is:

function addRow() {
   this.onchange = null;
   Dynamic HTML code ...
}

Have fun Nathaniel10

Troy III 272 Posting Pro

To tell you the truth, I don't see the difference...
[?] What webspider!

Troy III 272 Posting Pro

you are using a wrong and obsolete DOCTYPE!

consider us9ng a standard <!DOCTYPE html>

Troy III 272 Posting Pro

you are most probably using a compromised google chrome.

Troy III 272 Posting Pro

If you do this, you will see a downgrade in your SER, traffic loss, and zero customer retention nobody wants popup anything, especially when they are exiting

I encourage you to type a letter in the box below and try to navigate away from this page.