• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to read all text of different input type from textarea?

 
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

I am designing a web application which has blog writing features like user can insert image,text,files at any place.

I have designed its UI problem I am facing is getting those value in server side and store them in same sequenance as they entered in textarea.

suppose In case information is in this order
video
text
image
text
text

so then I need to store that data in same order for further processing to create JSON

and same for others

How can I solve this?

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

It sounds like you want to grab all of the inputs in a single Form submit - but there is no obvious way to carry the order of entry.

Seems to me you need to make each entry of an input item a separate request/response cycle.

This would have the advantage of letting you check each entry separately for validity.

Also, each time you regenerate the entry form you can show all the items that have been accepted so far - good user feedback.

Bill

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
but I want to generate a JSON from blog source data How can I do that?

blog can anchor and any html tag between text.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would say the first step is developing code to accept and validate the various input types separately.

Next test code to generate JSON for each type in a separate page.

Only try to combine when you have mastered the separate types.

Bill
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic