School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,098 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,832 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

#1 taf  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 26-January 07


Dream Kudos: 0

Posted 20 August 2007 - 07: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&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 August 2007 - 12:02 AM

Was This Post Helpful? 0
  • +
  • -


#2 alpha02  Icon User is online

  • Sexy DIC God
  • Icon
  • View blog
  • Group: Author w/DIC++
  • Posts: 783
  • Joined: 20-May 06


Dream Kudos: 875

Posted 20 August 2007 - 10:22 PM

View Posttaf, on 20 Aug, 2007 - 11:15 PM, said:

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

Ok, now:

1) To open a window, use:

<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 August 2007 - 10:27 PM

Was This Post Helpful? 0
  • +
  • -

#3 1lacca  Icon User is offline

  • code.rascal
  • Icon
  • Group: Alumni
  • Posts: 3,822
  • Joined: 11-August 05


Dream Kudos: 0

Posted 21 August 2007 - 03:25 AM

Moved.
Was This Post Helpful? 0
  • +
  • -

#4 alpha02  Icon User is online

  • Sexy DIC God
  • Icon
  • View blog
  • Group: Author w/DIC++
  • Posts: 783
  • Joined: 20-May 06


Dream Kudos: 875

Posted 21 August 2007 - 09:32 PM

View Posttaf, on 20 Aug, 2007 - 11:15 PM, said:

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:
<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.
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



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