Help me immediately to clear my Doubts on PHP Code

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
sumanforu
Forum Newbie
Posts: 2
Joined: Wed Nov 07, 2007 12:37 pm

Help me immediately to clear my Doubts on PHP Code

Post by sumanforu »

1.when i want to add a link in content window for php .. i am facing problem with the path settings...

I am getting my link like http://localhost//wwww.mnc.com...

THe main problem is i need to get like wwww.mnc.com

Can any one give relay for this question, this is very urgent..

2.When i am adding a link in to selection selection like

Code: Select all

var hyperlink="http://www.mnc.com";

document.getElement('content').contentWindoe.document.createCommand("createLink",false,hyperlink)
This code is giving probelm to me

When i am going in to My Content window , i am getting my url like

http://localhost//http://www.mnc.com"


Can any one give relay for this question, this is very urgent..

3.when i want to add alink for my selection sentence which is in content window Editor (WysiWyg) in php

I am getting the big probelm

My added link was not coming in correct way...

Code: Select all

  var obj =window.opener.document.getElementById('wysiwyg' + qsParm['wysiwyg']).contentWindow.document.selection.createRange();

  var strLink="<a  href=http://www.mnc.com>"+obj.text+"</a>";
  obj.cutHTML;
  obj.pasteHTML(strLink)

You can send the Reply to this ID: suman_joyful007@yahoo.com

feyd | Few need EVER make a post entirely in bold. You are not one of these.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Please stop posting about how urgent your problem is. Everyone's problem is urgent and will be dealt with as soon as we are able to deal with them.

Please clarify your questions a bit. And make sure to post Javascript questions in the Client Side forum and PHP questions here. Thanks.
Post Reply