Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 4.02 seconds.
Search: Posts Made By: A1ien51
Forum: JavaScript frameworks 12-17-2010, 12:24 PM
Replies: 1
Views: 1,237
Posted By A1ien51
Involves scrollTo and page load ...

Involves scrollTo and page load

http://shaunmackey.com/articles/mobile/how-to-hide-the-address-bar-in-mobilesafari/

Eric
Forum: JavaScript programming 11-30-2010, 12:57 PM
Replies: 5
Views: 2,116
Posted By A1ien51
Not sure what the last post was trying to say...

Not sure what the last post was trying to say other than pimp a post.



Hence why I said you had to look at history managers like YUI History Manager or Really Simple History. They listen for...
Forum: JavaScript programming 11-30-2010, 05:20 AM
Replies: 5
Views: 2,116
Posted By A1ien51
You can not change the url without refreshing the...

You can not change the url without refreshing the page. You can change the hash.

window.location.hash = "newPage"

Look into YUI History Manager or other scripts like that.

Eric
Forum: JavaScript frameworks 11-09-2010, 03:27 AM
Replies: 3
Views: 2,638
Posted By A1ien51
Never use onclick="showImage() on the element,...

Never use onclick="showImage() on the element, that is very bad practice, especially when you are using a library that makes it as easy as pie to add events the correct way.

$("#ElementId").click(...
Forum: JavaScript programming 11-05-2010, 01:39 PM
Replies: 7
Views: 20,173
Posted By A1ien51
FYI: Changing this setting will open your...

FYI: Changing this setting will open your computer up to attack so I would not use this browser for your daily surfing needs unless you want someone to read your email, bank account, etc.

Eric
Forum: DOM and JSON scripting 10-06-2010, 01:05 PM
Replies: 12
Views: 21,938
Posted By A1ien51
Um, that is not a good solution since you are...

Um, that is not a good solution since you are creating an element that you do not want. Why is it so hard to do

var button = document.createElement('button');
button.onclick = functionToCall;...
Forum: Ajax and Design 09-18-2010, 08:04 PM
Replies: 3
Views: 1,347
Posted By A1ien51
You are using the same global variable so you...

You are using the same global variable so you keep writing over the previous request.

Use an library to make the Ajax calls and you will not have the issues.

Eric
Forum: JavaScript programming 08-31-2010, 12:48 PM
Replies: 3
Views: 3,532
Posted By A1ien51
JavaScript is not going to help to make your site...

JavaScript is not going to help to make your site look the same in every browser. Coding CSS and tweaking it for the browsers is what will make it look the same.

Eric
Forum: Ajax and Design 08-28-2010, 10:18 PM
Replies: 1
Views: 1,931
Posted By A1ien51
What you are doing is not causing massive strain...

What you are doing is not causing massive strain on the server. You are not talking about a page that is dealing with tons of backend resources.

Ajax does not require changes on the server.

BUT...
Forum: Ajax and Design 08-27-2010, 10:55 PM
Replies: 8
Views: 1,725
Posted By A1ien51
http://en.wikipedia.org/wiki/Comet_%28programming%...

http://en.wikipedia.org/wiki/Comet_%28programming%29
Forum: Ajax and Design 08-27-2010, 09:08 PM
Replies: 1
Views: 1,078
Posted By A1ien51
Something like this:...

Something like this: http://arashkarimzadeh.com/index.php/jquery/7-editable-jquery-plugin.html ?
Forum: Ajax and Design 08-27-2010, 09:06 PM
Replies: 8
Views: 1,725
Posted By A1ien51
1 user generates 1 request every second. Multiply...

1 user generates 1 request every second. Multiply that by 10 users that is 10 requests. Your server will get pounded as your load increases. Hope you have the bandwidth.
Forum: Ajax and Design 08-27-2010, 09:05 PM
Replies: 2
Views: 2,928
Posted By A1ien51
That code should not run because of the Same...

That code should not run because of the Same Origin Policy. (http://codingforums.com/newreply.php?do=newreply&noquote=1&p=985208)

Eric
Forum: Ajax and Design 08-27-2010, 09:03 PM
Replies: 3
Views: 2,997
Posted By A1ien51
I would not use document.write. Put an element on...

I would not use document.write. Put an element on the page and set its innerHTML with the content.

Have you added debug statements to see where it is failing?

Eric
Forum: JavaScript programming 08-13-2010, 05:53 PM
Replies: 1
Views: 592
Posted By A1ien51
You can request an image from the server and see...

You can request an image from the server and see it returns, if not than you know you do not have access to the net

var img = document.createElement("img");
img.onload = function(){ alert('has...
Forum: JavaScript programming 07-26-2010, 05:56 AM
Replies: 4
Views: 787
Posted By A1ien51
IE uses window.event and does not get an event...

IE uses window.event and does not get an event passed in.

function dob(val,e) {
e = e || window.event;
var key = e.keyCode || e.which;
if(key != 8) {


Eric
Forum: DOM and JSON scripting 07-26-2010, 05:47 AM
Replies: 2
Views: 1,070
Posted By A1ien51
Your code tags are missing the / in the closing...

Your code tags are missing the / in the closing tags.

Looks like you are not sure about what the src is for. It is to link to a file that contains the JavaScript code.

You can not link to an...
Forum: Ajax and Design 07-26-2010, 05:41 AM
Replies: 1
Views: 971
Posted By A1ien51
JavaScript can not access the database on the...

JavaScript can not access the database on the server. It makes a request to some page/service on the server that handles the http request.

Eric
Forum: Ajax and Design 07-12-2010, 08:19 PM
Replies: 2
Views: 1,768
Posted By A1ien51
You really need to learn about SQL Injection...

You really need to learn about SQL Injection (http://en.wikipedia.org/wiki/SQL_injection).

You are giving a hacker full access to your database with JavaScript. Bad Bad Bad Bad Bad idea.


Eric
Forum: Ajax and Design 07-12-2010, 08:18 PM
Replies: 6
Views: 746
Posted By A1ien51
Look at the difference between ...

Look at the difference between


document.getElementById("yourspy").value

and

document.getElementById("answer1")

Eric
Forum: JavaScript programming 07-12-2010, 08:12 PM
Replies: 3
Views: 1,199
Posted By A1ien51
I do not understand this line at all var...

I do not understand this line at all

var values = localStorage.getItem(localStorage.key(i));

It seems very weird.

I would think it would be:
var values = localStorage.getItem(i);

or
Forum: JavaScript programming 07-12-2010, 08:05 PM
Replies: 3
Views: 1,199
Posted By A1ien51
Well first I would say is you need to install...

Well first I would say is you need to install Firebug (http://getFirebug.com)if you have not done so already so you can debug the code better.

Eric
Forum: JavaScript programming 06-27-2010, 04:20 AM
Replies: 2
Views: 700
Posted By A1ien51
The images get dumped into the queue so they have...

The images get dumped into the queue so they have to wait their turn. You can either try to run a image preloader or not run the code until the page has fully loaded.

Eric
Forum: JavaScript programming 06-24-2010, 10:15 PM
Replies: 13
Views: 1,469
Posted By A1ien51
Put it in the if statement? Eric

Put it in the if statement?

Eric
Forum: JavaScript programming 06-24-2010, 06:44 PM
Replies: 13
Views: 1,469
Posted By A1ien51
Adding a script to the page: var scr =...

Adding a script to the page:

var scr = document.createElement("script");
scr.src = "foo.js";
document.getElementsByTagName("head")[0].appendChild(scr);


Eric
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 03:59 PM.