School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

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




pop-up small window & link action in the textfield

 

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: 688



Thanked: 5 times
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: 31 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: 688



Thanked: 5 times
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: 11/7/09 05:10PM

Live Help!

Be Social

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

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month