AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tutorial - Control/manipulate webpages - AHK and JavaScript
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  

Your opinion on this tutorial
It's just great, exactly what I needed!
51%
 51%  [ 14 ]
It's nice, helped me a lot
40%
 40%  [ 11 ]
It's ok, but nothing new to me
3%
 3%  [ 1 ]
It's ok, but too difficult for me
0%
 0%  [ 0 ]
I don't wanna learn, just gimme the snippets!
3%
 3%  [ 1 ]
It sucks, why would I need this anyway...
0%
 0%  [ 0 ]
Total Votes : 27

Author Message
Jon



Joined: 28 Apr 2004
Posts: 350

PostPosted: Wed Jun 07, 2006 8:48 pm    Post subject: Reply with quote

Quote:
Since I read nearly all posts, I remember sometimes that a certain topic has been solved, so I know what I have to search. Smile But my knowledge only goes back 1,5 years. The post of the time before that are only known to a few (e.g. BoBo, Rajat and of cause Chris).


I used to read all of topics but there are far too many now especially in the "Ask For Help" section. Smile

I'm quite well acquainted with the scripts available in the "Scripts and Functions" forum though Wink

I have never found the search feature to be very good in PHPBB forums (which is one reason I put together that catalogue).
Back to top
View user's profile Send private message Send e-mail
Anxious_Patient



Joined: 31 May 2009
Posts: 7

PostPosted: Sun May 31, 2009 11:28 pm    Post subject: Re: Tutorial - Control/manipulate webpages - AHK and JavaScr Reply with quote

daonlyfreez wrote:
javascript:function ChangeColor(){document.body.style.background="yellow"};ChangeColor();
How can I use color codes instead of the color words.

Instead of using yellow I want to use FFFF00.

Is that possible?
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 2416
Location: Louisville KY USA

PostPosted: Mon Jun 01, 2009 7:42 am    Post subject: Reply with quote

since its obvious you have no clue whatsoever how html works ill offer this one time answer .... yess
but seriously go to w3schools.com and learn html before posting more rediculous questions like this
_________________
Basic Webpage Controls with JavaScript / COM - Tutorial by Jethrow
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Jun 07, 2009 5:33 am    Post subject: Reply with quote

tank wrote:
since its obvious you have no clue whatsoever how html works ill offer this one time answer .... yess
but seriously go to w3schools.com and learn html before posting more rediculous questions like this


I think I can help you a little more then tank

Just replace the yellow with #FFFF00.

Be sure to leave in the quotation marks.

In the future if you want to know how to do something avoid asking YES or NO questions because you will get YES or NO answers.

It would be better to ask HOW to do something.
Back to top
mydspro



Joined: 08 Jun 2009
Posts: 1

PostPosted: Mon Jun 08, 2009 9:09 am    Post subject: Re: Tutorial - Control/manipulate webpages - AHK and JavaScr Reply with quote

Hi, I wonder for those websites, they pop up a windows with no menubar & address bar, why do you run the javacript for those? And they don't have the "Edit1" address bar for you to play with. Thanks.
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 2416
Location: Louisville KY USA

PostPosted: Mon Jun 08, 2009 12:38 pm    Post subject: Re: Tutorial - Control/manipulate webpages - AHK and JavaScr Reply with quote

mydspro wrote:
Hi, I wonder for those websites, they pop up a windows with no menubar & address bar, why do you run the javacript for those? And they don't have the "Edit1" address bar for you to play with. Thanks.
these windows are part of the windows collection and navigation based javascript inserts will not be possible for these you will need to visit the subject of COM
_________________
Basic Webpage Controls with JavaScript / COM - Tutorial by Jethrow
Back to top
View user's profile Send private message
Join the 'Address'-Bar !
Guest





PostPosted: Fri Jun 12, 2009 2:36 pm    Post subject: Reply with quote

Quote:
And they don't have the "Edit1" address bar for you to play with.
Why not push the "how to get surprised" - F11 key once such a popup is appearing?
Back to top
tank



Joined: 21 Dec 2007
Posts: 2416
Location: Louisville KY USA

PostPosted: Fri Jun 12, 2009 2:39 pm    Post subject: Reply with quote

Join the 'Address'-Bar ! wrote:
Quote:
And they don't have the "Edit1" address bar for you to play with.
Why not push the "how to get surprised" - F11 key once such a popup is appearing?
because some such pages have that blocked as well
_________________
Basic Webpage Controls with JavaScript / COM - Tutorial by Jethrow
Back to top
View user's profile Send private message
ansher



Joined: 05 Jun 2009
Posts: 1

PostPosted: Tue Jun 23, 2009 3:41 pm    Post subject: Reply with quote

Nice informative post.

Can someone help me, how to solve if the form ids are dynamic?
I want to disable few drop-down lists in a form, to avoid wrong entry of data. Of course the easier way to do this is using javascript form validation during submit. But there is no way I can make any changes to the source.

I managed to disable dropdown lists using the below code …

Code:
javascript:function disableRp() { document.getElementById("Applications_DynamicApp_Create_ascx912ecb4d_1f11_4edf_af7a_34e5ae240738_wc_341f964e7c5a48ccb1545adbf1fa581a").disabled=true; }; disableRp();


But the problem I am facing is ID for dropdown changes dynamically (there is no fixed value). Is there any solution to this?
Back to top
View user's profile Send private message
jethrow



Joined: 24 May 2009
Posts: 794
Location: Iowa, USA

PostPosted: Wed Jun 24, 2009 7:23 am    Post subject: Reply with quote

Have you tried accessing the element by other methods? For instance:
Code:
document.getElementsByName(" ")[]
document.getElementsByTagName(" ")[]
document.forms[].elements[]

*Note - items with a [] require an index, which starts at [0]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group