BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-17-2011, 11:24 AM   #1 (permalink)
New Member
 
Join Date: Feb 2011
Model: 8350i
PIN: N/A
Carrier: nextel
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default GET data httpconnection - help

Please Login to Remove!

I'm trying to search for specific "text" on a URL. I've got a basic undestanding and (after working with httpdemo) i have been able to link to the website I'm wanting. Can someone please help me with the code on "searching a URL for specific text"? I've got an input box for the user to type in the desired text, I just don't know how to search the URL for it. Thanks guys.
Posted via BlackBerryForums.com Mobile
Offline  
Old 02-17-2011, 02:23 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: GET data httpconnection - help

You'll need to get the content of the page (HTML) as a string or a byte array, then search for the value.

I would suggest getting it as a string - then you can use the string search methods that are built into the String class.
Offline  
Old 02-17-2011, 10:45 PM   #3 (permalink)
New Member
 
Join Date: Feb 2011
Model: 8350i
PIN: N/A
Carrier: nextel
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dougsg38p View Post
You'll need to get the content of the page (HTML) as a string or a byte array, then search for the value.

I would suggest getting it as a string - then you can use the string search methods that are built into the String class.
Posted via BlackBerryForums.com Mobile
Offline  
Old 02-19-2011, 12:27 PM   #4 (permalink)
New Member
 
Join Date: Feb 2011
Model: 8350i
PIN: N/A
Carrier: nextel
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: GET data httpconnection - help

Can someone please post a sample code using the httpconnection and string search method. Thanks
Posted via BlackBerryForums.com Mobile
Offline  
Old 02-19-2011, 02:44 PM   #5 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: GET data httpconnection - help

I gues you can start out by looking at the HTTP demo source that ships with your RIM development tools.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: GET data httpconnection - help
Thread Thread Starter Forum Replies Last Post
Data and Wi-Fi phavn03 Social Networking 9 07-22-2010 12:40 PM
Showing continous streamed data on screen and refreshing the screen accordingly hemant.bobade Developer Forum 0 05-19-2009 07:53 AM
HTTPConnection - Reading Response Data DD12 Developer Forum 1 05-16-2009 04:58 PM
Will Rogers follow and reduce data rates? Lex Luthor General BlackBerry Discussion 8 11-28-2007 01:57 PM
RIM CEO cautious about unlimited wireless data plans Sterling General BlackBerry Discussion 4 06-07-2006 07:49 AM





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.