Hi everyone. I'm having a very seriouse problem where I have a textbox and I want a button and I want to take whatever a user type in this textbox/textarea and set it to the `data-name` which is a button's parameter. Here is the codes. Textarea: `<input type="text" id="dCell" value="Cellphone Number" maxlength="10" onkeypress="checkmax(this)" name="CellphoneNumber2" id="cCell" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Cellphone Number';}" required>` Button:`<button id="cCart" class="btn btn-danger my-cart-btn my-cart-b" data-id="16" data-name="testbutton" data-summary="summary 16" data-price="50" data-quantity="1" data-image="images/of15.png">Buy Airtime</button>` The code I tried: function checkmax(element){ if(element.value.length == 9){ //var idNumber = $('#dCell').val(); $(function() { $('dCell').change(function() { $('#cCart').data('data-name', this.value); …

Member Avatar
Member Avatar
+0 forum 7

Hi im im trying to get attributes from two diffrent tag names.. <img class="chimg" alt="SOME TEXT" src=" #1 IMAGE LINK TO GET"/> <span>" #2 TIME TO GET" </span>" SOME TEXT "</a> </h3> <div> <a href=' #4 LINK TO GET' onclick="window.open('Some link'); return true;" title=' #3 TITLE TO GET' >SOME TEXT</a> I WANT TO PUT THESE IN ORDER FOR EACH LINK DataGridView1.Rows.Add(""IMAGE LINK"", ""TIME TO GET"", ""TITLE TO GET"", ""LINK TO GET"" ) this is what i have so far Dim ElementCollection As Windows.Forms.HtmlElementCollection ElementCollection = WebBrowser1.Document.GetElementsByTagName("a") For Each curElement As HtmlElement In ElementCollection DataGridView1.Rows.Add(curElement.GetAttribute("title"), curElement.GetAttribute("href")) Next Please help..

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm trying to extract certain things from a web page. The website is TVRage.com, and the example I'm using at the moment is [URL="http://www.tvrage.com/Warehouse_13/episode_list"]the Warehouse 13 episode list[/URL]. So far I've managed to get the title of the show using this code: [CODE]#!/usr/bin/env python import urllib def save_page(site="http://www.tvrage.com/Warehouse_13/episode_list"): mypath = site mylines = urllib.urlopen(mypath).readlines() f = open('temp2.txt', 'w') for item in mylines: f.write(item) f.close() def find_title(temp="temp2.txt"): f = open(temp, "r") site = f.read() f.close() search1 = "<title>" search2 = " (Episode" starter = site.find(search1) ender = site.find(search2) #print "Starts at %s and ends at %s" % (starter, ender) Just …

Member Avatar
Member Avatar
+0 forum 2

Hi All, I installed php 5 in my linux pc. My phpinfo() says libXML support active libXML Version 2.6.23 libXML streams enabled But still I cannot use DOMDocument in my script. When I use it in my script, Class 'DOMDocument' not found in /var/www/html/getcontent_3.php Any pointers will be very much appreciated. And also I need this badly to traverse my html contents. I cannot re-install libxml package with "yum" as I am not connected with internet.Please let me know any offline installation is possible. Any other equilent is available in php and its performance comparing to DOMDocument.

Member Avatar
Member Avatar
+0 forum 1

Hi all, I wasn't sure where to post this, so I thought here might be best :D I have to develop a program that takes a webpage and extracts information from it, so I was wander how would be the best way to do this, without using an external library(like curl)? I.e. how does ones browser find words on a webpage when using ctrl+F, does it simply run a string search algorithm or are there other tricks to it? Another way to look at it, how would a web crawler know about the links etc, does it search for all …

Member Avatar
Member Avatar
+0 forum 1

Hello and thanks for reading. I am having a bit of trouble figuring out how to collect a piece of information from a web page. Here is the web page I want to retrieve the information from: [url=http://itemdb-rs.runescape.com/results.ws?query=green+dragonhide]RuneScape - The Number 1 Free Multiplayer Game[/url] I would like to retrieve the first "Price" of the item and collect the price every time I execute the code. I understand how to retrieve the source code of the webpage and split strings but how would I retrieve that price? Thanks.

Member Avatar
Member Avatar
+0 forum 1

I haven't ever messed with any webpages through java and I'm kind of curious as to how it would work. I have a specific question that perhaps someone will be able to answer. How would one go about pulling certain information from a forum? To better understand what I am asking, I'll give an example: Lets say I am surfing this forum and am currently at: [quote][url]http://www.daniweb.com/forums/forum9.html[/url][/quote] Then I click view source, this gives me the source of the current page opened. Now lets say I want to pull out every title in there. Ex. [B]title=""[/B] After pulling out each …

Member Avatar
Member Avatar
+0 forum 18

The End.