Need help with add text to url function

Could anyone help me to get this working? Im kinda of noob
and im trying to get a form to add
http://www. in front of a text submition
form and .com as suffix to the text, my code looks like this:
<form name="openlocation">
<input type="text" name="href" value="">
<input type="button"
onClick="location.href=document.openlocation.href.value;; "
value="Go To" href="
http://www.&lt;input
type=&quot;button&quot; value=&quot;Go To&quot;
onClick=&quot;location.href=document.openlocation.href.value;;
&quot;&gt;.com">
</form>

Try this:
<form name="openlocation">
<input type="text" name="href" value="">
<input type="button" onClick="location.href = '
http://www.' +
document.openlocation.href.value + '.com';">
</form>
HTH,
Randy
FotografistRobin wrote:
> Could anyone help me to get this working? Im kinda of
noob and im trying to get
> a form to add
http://www. in front of a text submition
form and .com as suffix
> to the text, my code looks like this:
>
> <form name="openlocation">
> <input type="text" name="href" value="">
> <input type="button"
onClick="location.href=document.openlocation.href.value;;
> " value="Go To" href="
http://www.<input type='button'
value='Go To'
>
onClick='location.href=document.openlocation.href.value;;
'>.com">
> </form>
>

Similar Messages

  • I need help with my text tone and I have ring tone. no text tone for the 4s.

    I need help with my text tone. I have ring tone no text tone. I have a 4s.

        Hi Sarar2333!  Let's get your text tones working again!
    Here's a link with instructions how to enable and change your alert sounds for your text/notification settings on your iPhone 4S: http://vz.to/1stiF8a.  You can ensure text tones are enabled by selecting a tone in the "Text Tone" setting.  Let me know how that works out for you.  Thanks!
    AnthonyTa_VZW
    Follow us on Twitter @VZWSupport

  • Need help with cleening text during ExportAllStories (JS-CS4)

    I have altered the ExportAllStories.jsx script for CS4 to export the selected TextFrame(s).
    The main function are the same as in the original.
    It works fine, but I need advice on how to clean the text before it gets exported to a text file.
    I have tried to pass the TextFrame object myStory, as in the original script, to a function like this:
    myStory = cleantext(myStory)
    The function cleantext works with a text string passed to it,like this:
    function cleantext(s) {
    s.replace(/\u2011/g,'-');
    I guess I have to extract the myStory object to a text string but haven’t succeeded yet.
    Maybe the solution is to do some search and replace with GREP or other techniques?
    All tips on how to proceed would be appreciated.

    This is how i solved my problem.
    With the help from Peter Kahrels function
    function replace (f, r)
       app.findGrepPreferences.findWhat = f;
       app.changeGrepPreferences.changeTo =r;
       app.documents[0].changeGrep ()
    And in my script I could easily do this:
    app.findGrepPreferences = app.changeGrepPreferences = null;
    story = app.selection[0].parentStory;
    // Sample: Replace non-breaking hyphen (8209 -> \u2011) with a regular hyphen.
    replace("/\u2011/g",'-');
    app.findGrepPreferences = app.changeGrepPreferences = null;
    And thereafter proceeding with the exporting stuff.
    Thank you all contributors in this forum!

  • Need help with optimizing text appearance when exporting video

    Here's what I'm trying to do:
    1. Convert a Powerpoint presentation to an MP4 (AVC) file, frame rate 30 (actually defaults to 29.97) and video bit rate of 1200kbps,using Wondershare PPT2VideoPro.  (There are no actual video clips contained in the original PPT file).
    2. Import the newly created MP4 video into a new project in Premeire Elements.
    3. Add audio files (WAV) created by Audacity.
    4. Export the final product as a video.
    Here's the problem:
    The text quality in the final exported film is very poor, and the screen occasionally seems to sublty flicker once and a while.  I've tried multiple different settings, but all with the same result.
    Can anyone offer suggestions on optimal settings for exporting the final product such that the text is as clear as possible?  (The text in the MP4 file created by Wondershare looks great.)
    Thanks!
    - Ernest

    One option would be to create the Text Images in Photoshop, and Save_As a PSD.
    For large sets of Titles, I do the text portion in Word/WordPerfect, so I can use Spell-Check. Then in PS, I just Copy/Paste the text into an Image, where I apply all of the PS Styles that I need. Because I use PrPro for most of my NLE work, I will often do the Titles with Layered Text, and Import those as a Sequence, so that the Layers are not Flattened. This allows me to independently animate each Layer, as I need. Unfortunately, PrE does not allow one to Import the Layered PSD's, Unflattened, as it does not have Sequences.
    Also note that PrE's Titler's Styles are just a starting point. Once applied, one can alter most aspects, and when they are satisfied with the changes, they can then Save the new Style and re-use it over and over. Do not forget the ability to modify those Styles.
    From PowerPoint, and this depends on the version, the best that one can usually do is to Export each "slide" as a TIFF, and Import those into the NLE program.
    Good luck,
    Hunt

  • Need help with automating text import/pasting/macro between Photoshop and Excel

    Hey everyone,
    I'm working on a large project now that seems extremely daunting, but I was hoping there would be some way to automate it using either Actions or some sort of macro program.  Here's the gist:
    I've created a template with 24 differently sized text boxes in the photoshop image file.  Each text feild has unique text that needs to be be pasted into it, which has been compiled in excel.  This wouldn't be too dificult to do, except I have to recreate this image and all 24 text fields aproximately 350 times.  None of the text boxes will remain static through all 350 images as text is the title, description, and demographic ratings/percentages/data for the topic of each image.  I did something similar manually last year and it took me about 3, non-stop 18 hour days to complete it.
    (the test template)
    Can anyone think of any way I could automate this process?  I'm thinking some sort of macro that copies cell 1 in excel, switches to photoshop, opens layer 1, pastes, switches back to excel, goes to cell 2, copies, back to photoshop, layer 2, pastes, etc, etc, then does a 'save as' in photoshop and revets to PS layer 1, EX cell 1 (on tab 2) to start the process all over again.  I have no idea if this would work or if there is another way to do this but I would really appreciate any help or advice you guys could give.  I don't have really any expreience using PS Actions or macro programs/scripts, so I may be over my head or overlooking a really simple way to do this.  If there's a way to do it, I'm persistent enough to figure it out and get it working. Doesn't really matter how it gets done, I just need to fill those text boxes as best as I can and as quickly as I can.
    Any help you all could give is really appreciated.

    Have you read up on the Variables support in Photoshop?

  • Need help with add instance

    I'm can't figure out how to add a new record with add instance, see below for basic code.  The second one works but I can't re-create it.  I'm guessing something basic that I am over looking.
    I also can't figure out how to attached my pdf's so you have to download from my website.
    Thanks,
    Jay
    http://www.atg.state.vt.us/assets/files/Adding%20a%20row%20-%20does%20not%20work.pdf (does not work - need help)
    http://www.atg.state.vt.us/assets/files/Adding%20a%20row%20-%20works.pdf (this one works - I didn't create it)

    It looks as if you have saved the form as an Acrobat 7 STATIC form....you
    need to save it as a DYNAMIC form.  You will find that option in the file
    types in the save as dialogue.  I resaved it locally and your form works.
    Hope this helps

  • Need help with Photoshop text?

    Hi - I have been using Photoshop Elements 10 for about a year.  I use it a lot to add text to images.  For some reason within the last week, I am unable to add any text to images.  When I try to do this (once I click on the 'T' and then click on the image where I want the text to go) Photoshop adds a layer, but will not allow me to add the text.  I do not know if this is a setting, but I don't recall changing anything.  I've tried Googling this but cannot find any solution that works. Everything I've found on the PS website is just how to add text, which I already do. I've also tried reinstalling my software.  At this point, I do not know what else to do.  Can someone help?

    Hi,
    See if the second option going to Edit works.
    http://helpx.adobe.com/photoshop-elements/using/undo-redo-cancel-actions.html#restore_defa ult_preferences
    Restore default preferences
    Preference settings control how Photoshop Elements displays images, cursors, and transparencies, saves files, uses plug‑ins and scratch disks, and so on. If the application exhibits unexpected behavior, the preferences file may be damaged. You can restore all preferences to their defaults.
       Note:
    Deleting the preferences file is an action that cannot be undone.
    Do one of the following:
    Press and hold Alt+Control+Shift (Mac: Option+Command+Shift) immediately after Photoshop Elements begins launching. Click Yes to delete the Adobe Photoshop Elements settings file.
    Go to Edit > Preferences (Mac: Photoshop Elements > Preferences > General), click the Reset Preferences on next launch button, and then click OK. When you restart Adobe Photoshop Elements, all preferences are reset to default settings.
    A new preferences file is created the next time you start  Photoshop Elements. For information on a specific preference option,  search for the preference name in Help.

  • Need help with creating text anchors with tagged text.

    Can anyone tell me how to determine the correct value for a "Hyperlink Dest Index" value?
    I have a script which creates a tagged text file that specifies about about 280 pages of tables (thank heavens for autoflow) , and would like to add live links between different parts. I can create a text anchor and a hyperlink to it in InDesign. The tagged text definition for the link source is simple and in-line and exports and imports nicely as tagged text. However, I see that all the link destinations, aka  text anchors, are all exported at the very end of the tagged text files as global definitions, and thier location iin the document is specified by the property HyperlinkDestIndex. However, I can't figure out how to set this value progammatically. I've spent over an hour exporting links, and it sure isn't anything as obvious as character index in the story.
    Any advice appreciated,
      Read Roberts

    Read, I'm not sure the following is going to help you. It works for external hyperlinks, but you want internal links, right? Anyway, it might give you some clues.
    A funny thing: I was reviewing some script where I got links to work, and I spotted a tiny coding error. Links seemed to be defined by two separate identifiers: a "link name", which is what appears in Edit Hyperlink dialog, and a "Dest Key", which seems to be a simple increasing number. However, due to aformentioned coding error, the dest keys between the actual link and its definition were off by '1', so there was no way that ought to have matched. But it still worked! So "Dest Key" is a red herring ...
    As far as I understand, it works like this (for hyperlinks): in your text, you have
    HplName -- this is actually the 'title' that appears in the Hyperlink palette
    HplDest -- this is the 'internal name'
    DestKey. Hm. Perhaps you could omit this, per above obsvn.
    CharStyleRef, the name of the auto-applied style
    Hid -- seems to be always '0'
    HplOff: the "offset" from this entire command to the start of the hyperlink, in InDesign characters.
    HplLen: the "length" from the hyperlinked text, in InDesign characters.
    and in the list of 'proper' definitions, those that appear at the very end of your file:
    HplDestDfn -- the internal name again
    DestKey -- see above
    HplDestUrl -- finally! A real URL! (But you must escape lots of characters, such as the forward slash and colon.)
    Hid -- again, always seems to be '0'.
    Some of these items are perhaps optional, but experimenting with what may be left out only lead to frustration The Tagged Text guide is far from complete, as I'm sure you already knew.
    As noted, some (or all) of the named items need a backslash escape for a few characters, but I can't find a definitive way to determine in advance what is 'good' and what is 'not good'.
    The following script creates a Tagged Text file with a couple of working hyperlinks in it -- I don't know if this is of any help for your internal links.
    var hyperlinkDest = [];
    var text = "This is some text with a link [http://www.jongware.com/idjshelp.html] and another one [http://forums.adobe.com/thread/1014617?tstart=0] in it.";
    var tagtext = text.replace (/\[(.+?)\]/g, function (full, match)
                        return makelink (match, 'title:'+match, match, match);
    // When done processing plain text, add the destinations at the end:
    tagtext += hyperlinkDest.join('');
    tagFile = File(Folder.myDocuments+'/__tmp.txt');
    if (tagFile.open('w') == false)
              alert ("Unable to create temporary file!");
              exit();
    if (File.fs == "Windows")
              tagFile.write ("<ASCII-WIN>\n");
    else
              tagFile.write ("<ASCII-MAC>\n");
    tagFile.write ("<dcs:HYPERLINK=<cu:1>>\n");
              tagFile.write (tagtext);
    tagFile.close();
    // 'text' is the actual text that will be clickable
    // 'title' is what will appear in the Hyperlinks palette
    // 'name' is the internal name in the Edit Hyperlink dialog
    // 'url' is the actual URL that will be linked to
    function makelink (text, title, name, url)
              var destkey = hyperlinkDest.length;
              // In URL you must escape forward slashes and colons
              // .. and some other characters as well, by the way. There seems to be no list
              url = url.replace(/\//g, '\\/').replace(/:/g, '\\:');
              hyperlinkDest.push ('<HplDestDfn:=<HplDestName:'+name+'><DestKey:'+String(destkey)+'><HplDestUrl:'+url+'><Hid:0>>');
              return '<Hpl:=<HplName:'+title+'><HplDest:'+name+'><DestKey:'+String(destkey)+'><CharStyleRef:HYPERLINK><Hid:0><Brdrv:0><HplOff:0><HplLen:'+String(text.length)+'>>'+text;

  • New to swing :( need help with simple text areas

    i'm trying to make a username and pasword GUI thingy (techinical word) but what i have now is this:-
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.io.IOException;
    public class swing1 extends JFrame implements ActionListener
         private String newline = "\n";
         protected static final String textFieldString = "JTextField";
         protected static final String passwordFieldString = "JPasswordField";
         protected JLabel actionLabel;
         private JTextField textField;
         private JPasswordField passwordField;
         private Container p; // make a panel to witch the components can be added
         public swing1()
              super("swing1");
              //Create a regular text field.
              textField = new JTextField(10);
              textField.setActionCommand(textFieldString);
              textField.addActionListener(this);
              //Create a password field.
              passwordField = new JPasswordField(10);
              passwordField.setActionCommand(passwordFieldString);
              passwordField.addActionListener(this);
              //Create some labels for the fields.
              JLabel textFieldLabel = new JLabel(textFieldString + ": ");
              textFieldLabel.setLabelFor(textField);
              JLabel passwordFieldLabel = new JLabel(passwordFieldString + ": ");
              passwordFieldLabel.setLabelFor(passwordField);
              //Create a label to put messages during an action event.
              actionLabel = new JLabel("Type text and then Return in a field.");
              actionLabel.setBorder(BorderFactory.createEmptyBorder(10,0,0,0));
              //Lay out the text controls and the labels.
              p=getContentPane(); //get te contant pane of this Swing1 to add the componets to
              p.add("West",textField); //add your fist component, add it west on the dafault borderLayout
              p.add("East",textFieldLabel);// add another component, add it east on the dafault borderLayout
              p.add("South",passwordField);// add it south on the dafault borderLayout
              p.add("North",actionLabel); // add it north on the dafault borderLayout
              setSize(400,100); //make it a bit bigger
              setVisible(true);
              public void actionPerformed(ActionEvent e)
                   Object o = e.getSource();// the component that fired this event
                   if (o == textField)
                        //action from the textField
                   else if (o == passwordField)
                        //action from passwordfield
              public static void main(String[] args)
                                  JFrame frame = new TextSamplerDemo();
                                  frame.addWindowListener(new WindowAdapter()
                                       public void windowClosing(WindowEvent e)
                                                 System.exit(0);
                                                                new swing1(); //make a new instance of your class
    [\code]
    why won't the label on my password field dislay?
    and can you take a look at the end of my code i got it off another program, i want to get rid of the HTML page its trying to access and i want it just to close when i click X
    any help would be briliant
    Ant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Since you are new to Swing the first thing I would recommend is to read the tutorial "Creating a Gui with JFC/Swing". I think the Text Component section has a demo on creating a username/password GUI. It can be downloaded at:
    http://java.sun.com/docs/books/tutorial/
    Why doesn't the password field label display? You are not adding it to the container. You add textField, textFieldLabel, passwordField, actionLabel but no passwordFieldLabel.
    Instead of adding a WindowListener and implementing the windowClosing() method, there is an easier way to close the JFrame in JDK1.3. Simply use:
    frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
    The class "TextSamplerDemo" doesn't belong in this class (it must be a demo class you downloaded from somewhere). All the code you need in the main method is:
    JFrame frame = new swing1();
    frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
    Also, by convention classes should be named with the first character of each word capitalized. So you class should be renamed to "Swing1" from "swing1". Also remember to rename the file as the filename and class name must be the same and case does matter.

  • Need Help with parsing text

    Hello all, I hope this is an easy question....
    I have a string similar to
    <li><span class="RandomInformation">the latest news on my site</span></li>
    I am currently geting a string where each new line is a new <li> from a pure http call. what I need to do is split this down into an array of strings (Yes this is my website, and no im not trying to rebrand other's work...:) ) delimeted on :
    - each line needs to be a separate element within a multidimensional array
    - Can't split on CrLf because further up and further down I have other entries I dont care about, so I need to use the <li></li> as indicators that they contain the information I want.
    - out of each line, I need to separate them into multiple 'columns' within the array
    - one for the contents of the span clas (in this case "RandomInformation"
    - one element for the contents of the link (in this case my url, http://www.w2gas.com, but will be sub pages later like http://www.w2gas.com/page2.html)
    - most importantly one element for the text between anchor tags (this case it is "the latest news on my site")
    I tried a Regex for stripping the HTML tags out, however all I was left with was the text between anchors. I know I could do it based on character by character looping (have done that) but its terrible slow. I know there must be a way to accomplish this, however Im just too new to figure it out. (maybe?)
    Thanks in advance
    Lee

    Would something like [this |http://htmlparser.sourceforge.net/] help?

  • Newb needs help with dynamic text

    Hi Everyone,
    I don't like being a newb - but that's how it is...
    I'm trying to create a multipage registration form that
    allows uses to register products.
    The first page asks for name etc, and on the second page I
    want it to say "Welcome "+username "!" - that sort of thing...
    The problem is I can't get it to keep the dynamic text values
    accross the pages.
    I can get it to repeat the input on the first page with this
    code:
    _root.firstname_txt.onChanged = function() {
    _root.firstname_repeat.text="Hello
    "+_root.firstname_txt.text;
    However when I call it on the second page it is undefined:
    second_repeat.text="hello "+_root.firstnamt_txt.text;
    trace (_root.second_repeat.text);
    I'm sure this is something simple and I'm just a programming
    dunce...
    Any help is appreciated.
    ta

    if your textfield (_root.firstname_repeat) doesn't exist on
    the 2nd frame, its text property will be undefined.
    to remedy, either extend your textfield's existance into the
    frames needed or use a variable to store its text property (in your
    onChanged handler) and use that variable to retrieve the value you
    need.

  • Need Help with Arrays/Text

    I'm trying to create a flash program that uses it's own code to send and create images. Each square has a colour and that colour gets added into the array. A black, then grey, then white is:
    filecode = ["Bl", "Gr", "Wh"];
    That works fine, but when I try to paste it into an Input text box it will only fill in the first part of the array.
    filecode = ["Bl,Gr,Wh"];
    So the program has NO idea what I want.
    The only ways I can think of fixing this is by putting in 402 text boxes to suit every box...But every one of them needs a Variable Name.
    Or by sending the information straight into the array. But this way you are just looking at what you just drew, and that is not at ALL practical.
    Helping me with this headache will be greatly apprectiated.
    FlashDrive100.

    If you can explain the first part of your posting it might become a little clearer what you are trying to do and what isn't working... particularly this...
    " when I try to paste it into an Input text box it will only fill in the first part of the array."
    I can't speak for anyone else, but at this point, I share your file's problem... not knowing what you want.

  • Need help with saving text

    i,ve created frame with a JTable, and add new button.
    every time i run project table gets empty, of course, that is normal, but i would like that when i tipe something in my table and press button, things i wrote in table get saved. lets say that the variable name of JTable is "table" and name of button "save". i'm not expert in java programing but i really need this code. could someone please be so generous and wrote that code for me? i need it till tomorrow :S

    What you need is Serialization.
    I did a quick google search and found this:
    http://java.sun.com/developer/technicalArticles/Programming/serialization/
    It basically allows you to save your object and load it later.
    You could also save your stuff in plain text. Follow this tutorial to learn how, This is maybe a bit easier if you don't know what objects are.
    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Need Help with Postioning Text Boxes

    Hello,
    I am fairly new to APEX, but I think I getting the hang of it. I am very much impressed with the functionality. I have a question and I hope someone can help me with it.
    I have a Diagram that looks like:
    X
    X X X X
    X X X X X
    The X's represent values that will go in the them, source being an SQL Query so I though I could use TextBox Item and make the sqlquery which will be a count of some sort. This will be dynamically changed depending on user input.
    I also have lines connecting to the X's and labels. So I created a table with the diagram as a background. So my dilema is that how do I reference ITEM Text boxes to be in the table. I tried
    <table background="my_image.bmp"><tr><td>#ITEMS#:P1_X</td></tr><table>
    but it only shows up as ":P1_X" not that actual ITEM, i know my syntax maybe wrong to reference the item, so that would be my first question.
    Is there a way I can just position the actual textbox to in the table?
    My second question, for positioning so the textboxes woudl line up where the X's are, should I use CSS, and if so, do I have to upload a Style Sheet?(which I don't mind, just wondering if there is a way to just use CSS in the Page HTML SOURCE?)
    SO... basically I would like to know the best way to get these textboxes in the place where the X's are. The diagram is a image that is the background of a table. Any thoughts?

    After posting the message my representation of the diagram is a bit off, it looks like a Tree diagram with spaces and teh first X being in the middle and equally spaced then on.

  • Need help with flash text

    I created a banner for my groups web site with some simple
    text effects. It came out fine but I was assigned other work and
    was not able to finish the site for almost a yr. When I got back to
    it and tried to change a few words of the text it wouldn't work it
    seems all the effects I had used no longer would work. I would get
    error saying that I couldn't do it but the file I was modifying
    already "was" doing it, weird. I have no clue what changed. I
    managed to get it looking right in flash, I'm using FLASH MX 2004
    ver 7.2, but when I preview it in a browser it comes out all jerky
    and none of the effects work. Since this is an internat site I
    can't give anyone the address bcs you wouldn't be able to view it
    but I would be willing to send anyone the file I am talking about
    so you could see it for yourself. I would appreciate any help as I
    am at a dead end..
    Mike
    United Space Alliance

    anyone ??

Maybe you are looking for

  • WTR54GS Fails to obtain a DHCP IP Address from Upstream

    Greetings! I had effectively given-up on Linksys Router WTR54GS, as it was advertised that it could be plugged into a pre-existing network (friends home network, a hotel room ethernet jack, etc), but sadly the WTR54GS itself is incapable of obtaining

  • Blackberry as a Bluetooth Wireless Modem

    I want to set up my Blackberry 8703e as a bluetooth wireless modem. i have researched this and found many pages so far but still struggle putting the whole connection together. Has anyone done this? Any pro tips?

  • Canon 5D lll raw to Aperture - under exposed

    Converting Canon 5D lll raw files via Aperture is producing a very under exposed image. The same file converted via Canon DPP or Photoshop CS5 appear 'correct.' Why is this so different? I have to increase the exposure in Aperture to 1.25 (default is

  • Anyone get the Firefly 302 to work?

    I've seen several comments about the Phonic Firefly 302 plus and mac software. I have an 08 iMac running snow leopard and I cannot get the firewire Firefly 302 to work. In utilities/audio, all the device settings are grayed out and I cannot set it as

  • Reg:Tickes in Oil and Gas Industry

    HI All, Any body working oil and gas Industry?. Plz send me some Samle Issues and Answers (FICO). regards JK