Welcome to Dream.In.Code
Become an Expert!

Join 149,613 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,847 people online right now. Registration is fast and FREE... Join Now!




pop-up small window & link action in the textfield

 
Reply to this topicStart new topic

pop-up small window & link action in the textfield

taf
20 Aug, 2007 - 07:15 PM
Post #1

New D.I.C Head
*

Joined: 26 Jan, 2007
Posts: 1


My Contributions
hi! just wanna know

1.the coding to pop- up small window when a user click on the link button

<a href="info/info.html?1.5.2&1.html" class="cc">e-Account</a>

2. is it possible to put an action in the textfield that will enable user to link to the other pages?

Attached Image

From the attached image, when the user click the "DETAIL" text, a small window that contain the detail of the article will pop-up in the separate window

This post has been edited by taf: 21 Aug, 2007 - 12:02 AM
User is offlineProfile CardPM
+Quote Post

alpha02
RE: Pop-up Small Window & Link Action In The Textfield
20 Aug, 2007 - 10:22 PM
Post #2

D.I.C Addict
Group Icon

Joined: 20 May, 2006
Posts: 687


Dream Kudos: 850
My Contributions
QUOTE(taf @ 20 Aug, 2007 - 11:15 PM) *

hi! just wanna know

1.the coding to pop- up small window when a user click on the link button

<a href="info/info.html?1.5.2&amp;1.html" class="cc">e-Account</a>

2. is it possible to put an action in the textfield that will enable user to link to the other pages?


<form id="form1" name="form1" method="post" action="">
<label for="textarea"></label>
<textarea name="textarea" id="textarea">link.html</textarea>
</form>


First, moderators please move this to HTML/CSS/JavaScript forum smile.gif

Ok, now:

1) To open a window, use:

CODE

<script type = "text/javascript">
function pop(){
    window.open("http://www.somesite.com", 0, 'width=600, height=600').
}
</script>
<a href = "java script:pop()" class = "cc">Account</a>

Remove the space in "java script:pop()" because the server of DIC seems to change it to the wrong form.

2) Please explain your question a bit more, and I will help you with this one.

This post has been edited by alpha02: 20 Aug, 2007 - 10:27 PM
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Pop-up Small Window & Link Action In The Textfield
21 Aug, 2007 - 03:25 AM
Post #3

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
Moved.
User is offlineProfile CardPM
+Quote Post

alpha02
RE: Pop-up Small Window & Link Action In The Textfield
21 Aug, 2007 - 09:32 PM
Post #4

D.I.C Addict
Group Icon

Joined: 20 May, 2006
Posts: 687


Dream Kudos: 850
My Contributions
QUOTE(taf @ 20 Aug, 2007 - 11:15 PM) *

2. is it possible to put an action in the textfield that will enable user to link to the other pages?


If I rely on what I can understand, I would say you should use:
CODE

<a href = "java script:window.open("details.php?id=0", 0, 'width=20, height=20')">Details</a>


In the details.php page, use the id variable to fetch the description and display it.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 12:24AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month