Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

How do I Auto-fill a text box in a flash chat box in a browser control?

Experts, I have a flash chat room on the web that is being embedded in my vb app via the browser control. Well, on the web, in order to enter emoticons, one must enter characters like :) for the smily, etc. In my vb app, I want to provide a pull-menu listing the emoticons; and when an emoticon is selected, automatically pluck the appropriate characters into the textbox for them. Do any of you experts know how this can be done? If so, please advise with full code sample, and I'll thank you kindly with 300 points. Thanks in advance!
0
John Account
Asked:
John Account
  • 5
  • 4
  • 2
1 Solution
 
crazymanCommented:
flashPlayer.SetVariable "txtMyTextBox", ":o)"

http://www.devcity.net/forums/faq.asp?fid=36&cat=General#TID22129
0
 
crazymanCommented:
flashPlayer.SetVariable "txtMyTextBox", ":o)"

http://www.devcity.net/forums/faq.asp?fid=36&cat=General#TID22129
0
 
John AccountAuthor Commented:
Hmmmmmm...that's very interesting, thanks for sharing, crazyman. However, as my question stipulated, the flash file is contained in a browser control. You see, it's in a php page, so I need to be able to do this from within a browser control via the web page it is contained therein.  Got any insight regarding that?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
crazymanCommented:
maybe something like

Webbrowser1.document.all("flashplayername").setvariable "txtMyTextBox",":o)"

Only problem i can see though is that you probably want to append the text box not overwrite it...
0
 
John AccountAuthor Commented:
By "flashplayername" do you mean the flash file name, like FlashPlayer.swf? Or do you mean an ID? Or something else???  Sorry if this sounds like a stupid question, but it just seems that your suggestion should work, yet it isn't. I've tried just about everything, with regard to what you suggested. Maybe you could elaborate???
0
 
crazymanCommented:
Do you have the url of the web page your trying it on, if so i could try to get it working from that.
Or is it run local?
0
 
John AccountAuthor Commented:
The url is http://www.lovelinepersonals.com/chat/chat.php, crazyman. I increased another 300 points to this question, for you if you can get it.  See, what I want to do is include icons at the bottom of the text box in the vb app, so that a person can click the icon and the appropriate value will be put in the flash textbox.  The variable name of the textbox in the flash is FlashRecTxtBox, same like the sample provided on that link you gave--i.e., TheflashPlayer.SetVariable "FlashRecTxtBox", txtVar.Text.  Thanks for your effort, crazyman.
0
 
crazymanCommented:
I cannot go to that site because my firewall will not let me visit personal sites :o(

however i got it working on this site

CLICK command 1 then got down to the flash movie select yes from the drop down box then click command2 on your vb form

Private Sub Command1_Click()
    WebBrowser1.Navigate2 "http://www.scottmanning.com/archives/000391.php"
   
End Sub

Private Sub Command2_Click()
WebBrowser1.Document.embeds("dependent-dropdown").SetVariable "howmany", "10"

End Sub
0
 
John AccountAuthor Commented:
It's giving me a Run-time error '91'; Object variable or With block variable not set.
0
 
planoczCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from JohnLucio crazyman from 12/11/2003 comment
Award points to is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer
0
 
planoczCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from JohnLucio crazyman from 12/11/2003 comment
Award points to crazyman is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 5
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now