Solved

Scribd pdf files viewer

Posted on 2009-05-12
10
458 Views
Last Modified: 2012-05-06
Hi,

I have uploaded some documents (pdf) at the Scribd (http://www.scribd.com/) They generate flash code/script for each upload (see below code). I want to embed these codes into my website. At present I am dedicating a full page for a single code. And in that sence I have to create 100 pages for 100 pdf files!!

I want a javascript or something which will allow me to show 100 pdf docs from scribd into one single page. User will be able to select the document and read from my site (http://indiangeekforum.info/ReadMeEN.html).

Please help.
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_349883993364249" name="doc_349883993364249" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"	height="500" width="100%" >		<param name="movie"	value="http://d.scribd.com/ScribdViewer.swf?document_id=13108185&access_key=key-2h7m4iqsf9hsiamcke6p&page=1&version=1&viewMode="> 		<param name="quality" value="high"> 		<param name="play" value="true">		<param name="loop" value="true"> 		<param name="scale" value="showall">		<param name="wmode" value="opaque"> 		<param name="devicefont" value="false">		<param name="bgcolor" value="#ffffff"> 		<param name="menu" value="true">		<param name="allowFullScreen" value="true"> 		<param name="allowScriptAccess" value="always"> 		<param name="salign" value="">    				<embed src="http://d.scribd.com/ScribdViewer.swf?document_id=13108185&access_key=key-2h7m4iqsf9hsiamcke6p&page=1&version=1&viewMode=" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_349883993364249_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle"  height="500" width="100%"></embed>			</object>

Open in new window

0
Comment
Question by:suvmitra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
10 Comments
 
LVL 10

Expert Comment

by:Kechka
ID: 24364680
Did you consider using iframe to show scribd code and drop down menu to select files?
0
 
LVL 9

Author Comment

by:suvmitra
ID: 24364746
Can you please provide me an example or sample code for this? Thank you.
0
 
LVL 10

Expert Comment

by:Kechka
ID: 24365004
try to put this code instead of yours for scribd part (notice I added Iframe around), and point your links directly to iscribd documents with target scribd (iframe name)
<iframe name="scribd" height="500" width="100%"><object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_349883993364249" name="doc_349883993364249" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"	height="500" width="100%" >		<param name="movie"	value="http://d.scribd.com/ScribdViewer.swf?document_id=13108185&access_key=key-2h7m4iqsf9hsiamcke6p&page=1&version=1&viewMode="> 		<param name="quality" value="high"> 		<param name="play" value="true">		<param name="loop" value="true"> 		<param name="scale" value="showall">		<param name="wmode" value="opaque"> 		<param name="devicefont" value="false">		<param name="bgcolor" value="#ffffff"> 		<param name="menu" value="true">		<param name="allowFullScreen" value="true"> 		<param name="allowScriptAccess" value="always"> 		<param name="salign" value="">    				<embed src="http://d.scribd.com/ScribdViewer.swf?document_id=13108185&access_key=key-2h7m4iqsf9hsiamcke6p&page=1&version=1&viewMode=" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_349883993364249_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle"  height="500" width="100%"></embed>			</object></iframe></div>

Open in new window

0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 9

Author Comment

by:suvmitra
ID: 24365487
Did you test this by yourself...as I am not able to see my document with the ifame if I remove iframe I can see the doc.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 24434302
suvmitra,

Instead of creating 100 instances of anything, you should be looking into using a server-side script (PHP) and a database to store all of the document info.

This will allow you to use two pages with two database queries and a repeating region to dynamically build a list of links.
0
 
LVL 9

Author Comment

by:suvmitra
ID: 24436006
I do not know php...is there anything we can do with javascript...and then embed that code into my HTML page?
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 24436042
>> I do not know php...is there anything we can do with javascript

I'm sure there is but you're not really adding any efficiency to the process using javascript.  PHP is not hard to learn and you are using Dreamweaver, so the Create Recordset and Repeat Region commands are built in wizards anyway.

0
 
LVL 9

Author Closing Comment

by:suvmitra
ID: 31580428
I know you are guiding me towards right track..I'll be working on this.
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question