JQuery and other "Snippets" In Dreamweaver?
Hello,
I've been using Joomla for a while now to develop my Web sites. But I'm considering switching to Dreameaver because it might allow me to have more options and more control over material in my sites.
I'm curious about the process of integating JQuery/CSS elements into Dreamweaver sites. With Joomla, there are ready-made "modules" that users install and manage through a "control panel."
Can someone tell me the basic way to integrate things like JQuery "snippets" into Dreamweaver?
For example, I'd like to use the stuff Soh Tanaka makes, such as this:
http://www.sohtanaka.com/web-design/simple-accordion-w-css-and-jquery/
Thanks for your help!
Matthew
Hi Matthew,
I recently got a website to revise, which was originally designed with joomla. I simply transferred the pages to the DW and developed them further there. If you allude to the "Simple Accordion" thing, so DW offers, for example, with its spry menus and widgets also ready-made solutions. Look here:
http://labs.adobe.com/technologies/spry/
http://labs.adobe.com/technologies/spry/samples/index.html
http://labs.adobe.com/technologies/spry/demos/
You get prerelease 1.6.1 of Spry framework now spry_p1-6-1_022508.zip here:
http://labs.adobe.com/technologies/spry/
The widgets you will find here:
http://labs.adobe.com/technologies/widgetbrowser/
Hans-G.
Similar Messages
-
Import code coloring xml and code snippets into dreamweaver cc 2014
How do I import my code coloring xml file and code snippets from the earlier version of dreamweaver into cc 2014?
Thanks, Preran. After uninstalling the 2014.1 update and reinstalling the previous version, I now installed the 2014.1 update again. Instead of jumping straight into restoring the preferences, I decided to test it out as-is, and it worked! No problems with pasting after opening any of my five browsers. I wonder what may have gone wrong the first time...or what was corrected during the uninstall/reinstall process. In any case, it is working again now and I am grateful. Thanks!
-
Missing CSS and other layouts in Dreamweaver CS3
I just recently upgraded to CS3 Mac -- I know, a little late
-- and when I hit New > New Document window pops up with the
type of new document selectable on the left and an empty field on
the right when certain options on the left are selected, such as
CSS. No options appear, like they do for HTML. I bought the
download products (CS3 Design Premium ) and even reinstalled
Dreamweaver. Still no bonus layouts. Suggestions?? I do not have
the disc with this download product. It is genuine Adobe. I
upgraded from Dw 8, but I have deleted 8.
Thanks.This is as designed. When you select CSS as the document
type, you will get
a blank CSS declaration and you can type CSS rules to make a
CSS page. That
is what it is supposed to do. If you want the CSS layouts
that come with
the product, then select HTML (or ASP, PHP, etc) and the CSS
layouts are in
the second pane over. Select the document type like HTML and
then select
the layout you want to use in the second column and then
click the Create
button.
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: Dreamweaver CS3: The Missing Manual,
DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide
Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"mcjack" <[email protected]> wrote in
message
news:gbcjsf$g4k$[email protected]..
>I just recently upgraded to CS3 Mac -- I know, a little
late -- and when I
>hit
> New > New Document window pops up with the type of
new document selectable
> on
> the left and an empty field on the right when certain
options on the left
> are
> selected, such as CSS. No options appear, like they do
for HTML. I bought
> the
> download products (CS3 Design Premium ) and even
reinstalled Dreamweaver.
> Still
> no bonus layouts. Suggestions?? I do not have the disc
with this download
> product. It is genuine Adobe. I upgraded from Dw 8, but
I have deleted 8.
> Thanks.
> -
Can't use a,o,q, and other letters in Dreamweaver.Help.
I type a now but in Dreamweaver I can't type it anywhere. I
must have pressed the wrong key somewhere.
Help.
RickThere must be some simple reason why?!
-
Hi all,
Dreamweaver CC 2014 comes with a host of tutorials for both beginners and advanced users. In this tutorial you will learn how the latest support for HTML5, CSS3, jQuery and PHP5.4 in Dreamweaver can help you author static, dynamic, mobile or responsive projects.
We would love to hear your opinion on this tutorial after you complete the training.
https://helpx.adobe.com/dreamweaver/how-to/html-css-jquery-php-dreamweaver.html?scid=socia l26198776
Thanks,
Preranjlig wrote:
> David, I just read thru the sample chapter 7 "Building
Site Navigation with the
> Spry Menu bar".
> - Finally a Spry resource that is friendly , thorough
and easy to follow
> along.
> - I especially like your honest comments in the "Mixed
Blessing" section.
Glad you found it useful. I felt it was essential to present
a balanced
view of Spry widgets, rather than giving a starry-eyed one.
> Trying to adjust the Tab Colors, Fonts, CSS page sizes,
margins, borders, etc
> is a bit of a nightmare for me. I know it is just a
matter of learning, but it
> would help to have resources like yours that take all of
the practical
> considerations into mind for end-users.
It is quite easy to do simple things with CSS, but it's very
powerful,
and has a long learning curve. Keep at it, and you'll get
there in the end.
> ps: How about a similiar new resource: "The Essential
Guide to Dreamweaver
> CS3 with ADDT, SPRY, CSS, AJAX and PHP / ColdFusion"
I'm not a big fan of ADDT (Adobe knows my opinions, because I
have told
them directly). I would like to see how ADDT develops before
committing
to writing about it. As for ColdFusion, I experimented with
it a long
time ago, but decided I preferred to improve my knowledge of
PHP before
branching out into other fields.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Dreamweaver CS6- I am trying to use jquery and jquery cycle to have 5 images slide (as a fade) in a banner. I thought I got the code right but it stacked the images. I suspect I have the incorrect code for the position or I haven't properly added cycle.
my head code:
<title>slider</title>
<script type="text/javascript" src="JS/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="JS/jquery.cycle2.min.js"></script>
<script type="text/javascript">
$('#slider').cycle({
</script>
<style type="text/CSS">
#slider {margin:auto;}
</style>
My div code:
<div id="slider">
<p>
<img src="Leather web page/DSC_0531_4925.JPG"/>
<img src="Leather web page/DSC_0035_edited-1.JPG"/>
<img src="Leather web page/DSC_1593_edited-1.jpg"/>
<img src="Leather web page/DSC_1595_edited-1.jpg"/>
<img src="Leather web page/DSC_1821.jpg"/>
</div>
Any help would be greatly appreciated.1. You can use a constructor to change the defaults. The default values can be seen in jquery.cycle2.js starting at line 659 as per the following. As you can see at the bottom, the code automatically runs the slideshow(s)
// @see: http://jquery.malsup.com/cycle2/api
$.fn.cycle.defaults = {
allowWrap: true,
autoSelector: '.cycle-slideshow[data-cycle-auto-init!=false]',
delay: 0,
easing: null,
fx: 'fade',
hideNonActive: true,
loop: 0,
manualFx: undefined,
manualSpeed: undefined,
manualTrump: true,
maxZ: 100,
pauseOnHover: false,
reverse: false,
slideActiveClass: 'cycle-slide-active',
slideClass: 'cycle-slide',
slideCss: { position: 'absolute', top: 0, left: 0 },
slides: '> img',
speed: 500,
startingSlide: 0,
sync: true,
timeout: 4000,
updateView: 0
// automatically find and run slideshows
$(document).ready(function() {
$( $.fn.cycle.defaults.autoSelector ).cycle();
2. To center the slideshow, merely center the container as in
div.cycle-slideshow {
width: 1000px;
margin: auto; -
Jquery and Dreamweaver.
Hi guys, I will guess that this has been asked a lot but I can not find it anywhere.
I have a simple bit of code and script in HTML CSS and Jscript. But Dreamweaver is not reading the Jquery. I have it set up to the HTML. The script is correct.........I think.
This is the JavaScript
$(document).ready(function() {
$("div").mouseenter(function() {
$("div").fadeTo("fast", 100);
But it's not working. I know that adobe needs an extention to make the Jquery to work, that I installed.
I created a JavaScript Pagetype to write the Jquery in, and set it up with the HTML page along with the CSS.
If that makes any sense, haha would be great for help.
ThanksYour code works for me. I see you have the opacity of the <div> set to 0.1 which I did not see in your first post.
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="JavaCSS.css"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("div").mouseenter(function() {
$("div").fadeTo("fast", 100);
</script>
<style type="text/css">
div {
opacity: 0.1;
border-radius: 5px;
height:60px;
width:70px;
background-color:#0FC;
</style>
<title>Untitled Document</title>
</head>
<body>
<div></div>
</body>
</html> -
It is a suggestion on Adobe Dreamweaver:
Could you change the setting of the page or template; to a free platform?
example; move: images, tables and other elements all over the place covering the page. in order to facilitate the user in the design environment.
free
Thank you for your attentionAdobe has been trying this and the product is called Muse ( Web design software | Download free Adobe Muse CC trial ). It doesn't give you the control over the code that most developers prefer but it could help bridge the gap for design if that is what you are looking for.
-
Dreamweaver to CFB (FTP and other gripes)
I 'get' the potential benefits of moving to CFB from Dreamweaver. I have watched all the videos and read the manual and I love the integration with Flex.
BUT
It appears very little thought has been put into the FTP and synchronisation tools..
Ideally:
I would like to set the destination FTP address for each project (at the moment although it asks me from the subdirectory, it shows me the top level root and I have to drill down each time for the destination where I want to upload)
I don't want to see nor have editing capabilities on my remote files by default.
Accidents happen and I'd rather they happened locally.
Accidentally deleting a directory remotely could be disastrous.
When the FTP client is busy, the rest of the IDE goes to sleep. Dreamweaver sorted this out two versions ago.
There appears no way to stop the interaction with the remote server.
So until all these (pretty fundamental) issues get sorted. I ill probably use FB to play with CF9 and jump back to Dreamweaver to use their robust FTP tools. (which just leaves me with the version control issues now that I have to put my FB source files into the wwwroot of my local server). Again a real pain !
Has anyone else found these problems - or worked out how to get around them ?
R8_UKR8_UK, I hear your concerns, and they're rather common. I hope I can address
(and resolve) some of them here for you.
First, I use the FTP feature all the time and it never makes the IDE
"sleep". You may want to turn on the progress view (window>show
view>other>general>progress). It will tell you what's happening as FTP
processes are running. It will also tell you other processes going on in the
editor. You may be surprised to find something else causing the "sleeps" you
sense.
As for you saying that "it shows me the top level root and I have to drill
down each time for the destination where I want to upload", again I don't
have that problem. Are sure you didn't just make a mistake in setting up the
FTP connection? Admittedly, changing them is tough. You have to go to the
File view, and there you'll see what FTP (or FTPS or SFTP) connections
you've made.
Or do you mean that you ARE using the File view, and it's when you open that
that it makes you drill down? Well, you don't need to do that. You can
instead connect your project to an FTP connection (either in the project
properties and its synchronization section, or by just right-clicking
anywhere in the project and choose Synchronize>Create New Synchronize
Connection).
If you do that, then it also solves a common complaint I hear from some,
that it's complicated to do an FTP upload in CFBuilder. Well, I just right
click on the file (or on the editor workspace to upload the file I'm working
on, such as after changing and testing it locally), then choose
Synchronize>Upload. Bang, done.
There is also a more evolved "synchronize" feature that lets you do more
(including comparing the contents of a file locally to remote, which comes
in really handy). There's an even still more evolved interface in
Window>Show View>Other>HTML Standard Views>Sync Explorer. The latter two
come closer to the kind of two-paned interface for managing local/remote
files that some expected in DW.
Of course, different people have different desires for FTP access. You have
said you do NOT want to edit the file directly on the remote server. I hope
what I share above helps you. But those who DO like editing on the remote
server (indeed, at their peril) will groan that they wish they didn't have
to do even that simple manual effort to upload: they wish that on save it
would upload. I don't know if we can ever expect that from within a local
project in Eclipse. It just goes against the grain of better development
practices, and it's one area where perhaps it's a good thing if the IDE
pushes one to reconsider that.
Until then, though, they can indeed use the File view, which does provide
direct access to a remote server and its files. With that, you do open the
remote file in the IDE and when you save it, it's pushed immediately to the
server.
Hope some of this helps you (and others) with your consternation with CFB
and FTP. Come on in, the water's fine. (But I'll grant that's a relative
statement. If you're still not sold, keep pointing out your concerns.)
/charlie -
Dreamweaver CS5 crashes in split screen and other cases
EXTREMELY FRUSTRATING!!
It's affecting my productivity.
I'm running SP2 to Enterprise Vista
CS5 will open just fine. It will open a plain HTML file just fine. but then when I go to split screen and click on the design window I find that it hasn't completely painted the whole of the code into the design portion... in other words it has painted like half the page... and now that I've clicked on the design portion it will crash. The same will happen in reverse... if I'm already on the design window and click over to source it will crash.
I have checked my code thinking maybe there is something drastically wrong with the code that is confusing DW, but isn't that what DW is for?? to be able to edit code that doesn't work right as well as build pages and sites? I shouldn't have to go and check code in another editor. Regardless, the problem remained. (In the words of the great pessimist, Charlie Brown, "Good grief!")
Any ideas?! BTW, I had CS5 installed before and just had to recently re-image my HD. It worked fine before with the same information as above... the only difference being that my previous CS5 was an upgrade from CS4. My new install is a direct install into CS5.Jocke27 wrote:
What do you mean with corrupt?
Why did you suggest that I created a new profile?
There are cache files and other system files that are created every time a user account is created. Sometimes these are corrupted in the OS and it really has no bearing on the specific application but it can lead to erratic behavior. Creating a new user recreates all these system files and thus it's almost like starting fresh. It's one step shy of re-installation of an OS. So because changing the user fixed the issue, then we have eliminated the fact that the application is causing the error and we know the OS is causing the error.
I can't just go in to that profile when I want to use?
I wouldn't recommend it. This can lead to more problems with the OS down the road with other applications and depending on where the corruption lies it can lead to issues with OS upgrades or even installing new software. The files that are typically most critical to users are stored in the Applications folder or the Documents/Sites/Pictures folders. You can easily drag them over to a new user account. If you have email being backed up for a product like Thunderbird you can also bring over many of the Library items as well. -
Hi I designed my website in Photoshop, sliced , and opened it in dreamweaver. I want a interactive spry bar but when ever I try to insert it, I get gaps in my page.
Below is the complete code: http://www.coriemoment.com
<html>
<head>
<title>home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="auto" topmargin="auto" marginwidth="auto" marginheight="auto" margin:0;>
<!-- Save for Web Slices (home.psd) -->
<table id="Table_01" width="1281" height="768" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="6">
<img src="images/index_01.png" width="1280" height="220" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="220" alt=""></td>
</tr>
<tr>
<td rowspan="4">
<img src="images/index_02.png" alt="" width="414" height="548"></td>
<td rowspan="3">
<object width="564" height="423"><param name="movie" value="http://www.youtube.com/v/XbuQiJ6Sv_M?hl=en_US&version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/XbuQiJ6Sv_M?hl=en_US&version=3" type="application/x-shockwave-flash" width="564" height="423" allowscriptaccess="always" allowfullscreen="true"></embed></object></td>
<td colspan="3">
<img src="images/index_04.png" width="255" height="89" alt=""></td>
<td rowspan="4">
<img src="images/index_05.png" width="46" height="548" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="89" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/video_03-07.png" width="1" height="336" alt=""></td>
<td rowspan="3">
<img src="images/index_07.png" width="34" height="459" alt=""></td>
<td>
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'search',
/*put your twitter id that people use to reply to you below. Mine is mhorning. If you only want to see the Tweets that you have Tweeted, then delete the part below that says- OR to:coriemoment */
search: 'from:coriemoment OR to:coriemoment',
/*this is the duration in terms of seconds*/
interval: 30000,
/*this is the title you want on your tweets*/
title: 'Corie Tweets',
subject: 'Send us your comments',
/*setting width to 'auto' will adjust the width of your tweetbox to whatever is set on your div. You can change this to something like 500px if you want*/
width: 'auto',
height: 212,
theme: {
shell: {
/*this will change the background color of your tweetbox. It is currently yellow*/
background: 'body p, body img, body embed, body object, body video{opacity:1 !important}',
/*this will change the color of the text in your background*/
color: 'fac935'
tweets: {
/*this will change the background color behind your tweets. It is currently white*/
background: 'body p, body img, body embed, body object, body video{opacity:0.2 !important}',
/*this will change the color of the text in your tweets. It is currently black*/
color: '#000000',
/*this will change the color of anything that is hyperlinked in your tweet. It is currently blue*/
links: '#1985b5'
features: {
scrollbar: false,
loop: true,
live: true,
behavior: 'default'
}).render().start();
</script></td>
<td>
<img src="images/spacer.gif" width="1" height="302" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/index_09.png" width="220" height="157" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="34" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/index_10.png" width="566" height="123" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="123" alt=""></td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>Very bad practice to just use image slices into your website.
Check out this tutorial to learn how to efficiently slice, dice and markup your design into an active HTML format - http://net.tutsplus.com/articles/news/slice-and-dice-that-psd/
Also, Spry - has been deprecated and is no longer officially supported by Adobe. http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l
Consider using a jQuery menu.
-Sudarshan -
Convert smart quotes and other high ascii characters to HTML
I'd like to set up Dreamweaver CS4 Mac to automatically convert smart quotes and other high ASCII characters (m-dashes, accent marks, etc.) pasted from MS Word into HTML code. Dreamweaver 8 used to do this by default, but I can't find a way to set up a similar auto-conversion in CS 4. Is this possible? If not, it really should be a preference option. I code a lot of HTML emails and it is very time consuming to convert every curly quote and dash.
Thanks,
Robert
Digital ArtsI too am having a related problem with Dreamweaver CS5 (running under Windows XP), having just upgraded from CS4 (which works fine for me) this week.
In my case, I like to convert to typographic quotes etc. in my text editor, where I can use macros I've written to speed the conversion process. So my preferred method is to key in typographic letters & symbols by hand (using ALT + ASCII key codes typed in on the numeric keypad) in my text editor, and then I copy and paste my *plain* ASCII text (no formatting other than line feeds & carriage returns) into DW's DESIGN view. DW displays my high-ASCII characters just fine in DESIGN view, and writes the proper HTML code for the character into the source code (which is where I mostly work in DW).
I've been doing it this way for years (first with GoLive, and then with DW CS4) and never encountered any problems until this week, when I upgraded to DW CS5.
But the problem I'm having may be somewhat different than what others have complained of here.
In my case, some high-ASCII (above 128) characters convert to HTML just fine, while others do not.
E.g., en and em dashes in my cut-and-paste text show as such in DESIGN mode, and the right entries
–
—
turn up in the source code. Same is true for the ampersand
&
and the copyright symbol
©
and for such foreign letters as the e with acute accent (ALT+0233)
é
What does NOT display or code correctly are the typographic quotes. E.g., when I paste in (or special paste; it doesn't seem to make any difference which I use for this) text with typographic double quotes (ALT+0147 for open quote mark and ALT+0148 for close quote mark), which should appear in source code as
“[...]”
DW strips out the ASCII encoding, displaying the inch marks in DESIGN mode, and putting this
"[...]"
in my source code.
The typographic apostrophe (ALT+0146) is treated differently still. The text I copy & paste into DW should appear as
[...]’[...]
in the source code, but instead I get the foot mark (both in DESIGN and CODE views):
I've tried adjusting the various DW settings for "encoding"
MODIFY > PAGE PROPERTIES > TITLE/ENCODING > Encoding:
and for fonts
EDIT > PREFERENCES > FONTS
but switching from "Unicode (UTF-8)" to "Western European" hasn't solved the problem (probably because in my case many of the higher ASCII characters convert just fine). So I don't think it's the encoding scheme I use that's the problem.
Whatever the problem is, it's caused me enough headaches and time lost troubleshooting that I'm planning to revert to CS4 as soon as I post this.
Deborah -
ITunes Fix for Manually Moving Music and other Media
Intro
Any iTunes 7.x user who manages their own music library outside of the "iTunes Music" folder might be able to tell you that iTunes DOES NOT respond well after manually moving tracks from one place to another on their computer systems. In fact, any file you move becomes immediately unplayable in iTunes. And, if you're anything like I am, losing several years worth of song rating metadata and playlists is not a good incentive for change. However, one thing others might not be able to tell you is that there's an easy workaround for the problem and you get to keep your playlists, ratings and other info. Read on to learn about the workaround.
About the Workaround
The workaround is a simple hack I devised after recently transferring a good portion of my music library between hard disks and running into problems with iTunes. The fix steps provided below are intended to circumvent the problems with iTunes and give users the freedom to move songs and other media files on their computers while maintaining the integrity of both the ratings and the playlists. Meaning you won't need to manually update the song locations in iTunes one-at-a-time, which, at version 7.02 is the only way to accomplish this task using the program.
Please be aware that not all information is retained using this workaround. What will be lost are the following: the "Recently Added", "Recently Played" and "Top 25 Most Played" iTunes Smart Playlists; any media file play counts; last played information; and possibly some other data used only internally by iTunes.
So, if you're comfortable parting with some metadata while keeping your cherished song ratings and playlists intact during file relocation, read on to learn how to use the workaround.
Workaround Steps
The following instructions walk step-by-step through the process of this workaround.
Note: All backslashes used in file paths have been converted to forward slashes so that they will adhere with MySpace XSS security validation checks. These altered paths can still be copy/paste into Windows Vista's Explorer program once the Username is changed to the User Account where the iTunes files reside.
Preparing for the Move
Before you move your files, do the following:
1. Close iTunes.
2. Create a backup copy of the following files:
iTunes Library XML (iTunes Music Library.xml)
Note: Vista users can find the Library XML at C:/Users/Username/Music/iTunes
iTunes Music Database (iTunes Library.itl)
Note: Vista users can find the Music Database at C:/Users/Username/Music/iTunes
Moving Your Files
This part should be self explanatory, but while you do it make sure to note the following two things:
1. The path where the files were previously stored (e.g. D:/Music).
2. The path where the files will end up (e.g. E:/Music).
Execute the Fix
After your files are moved, complete the following steps to implement the fix.
Note: Do not open iTunes during this process.
Hack the iTunes Library XML
Once the files are moved the Library XML file locations will be out of sync. Follow the steps below to update them so that they now reference the correct file locations.
1. Open the iTunes Library XML with a Text Editor with a Find/Replace function.
Note: Vista users can find the Library XML at C:/Users/Username/Music/iTunes
Tip: Do not try to do this with Dreamweaver if your Library XML is greater than 10MB.
2. Perform a Find/Replace using the following inputs:
Find: Path from Step 1 of Moving Your Files
Replace: Path from Step 2 of Moving Your Files
3. Confirm your results, and then save and close the Library XML.
Delete the iTunes Music Database
Hacking the iTunes Library isn't enough to fool iTunes. Like the Library XML, the Music Database also holds the file locations of all of the media stored within the program. And it's smart enough to wipe out the Library XML hack if iTunes is opened before completing this step.
Ensure you have backed up the iTunes Music Database (iTunes Library.itl) and delete the file.
Note: Vista users can find the Music Database at C:/Users/Username/Music/iTunes
Back in iTunes
Once the fix is in place you can now open iTunes again. You will notice that all of your playlists, music and other items have vanished. In order to recover them all (with the exception of the Smart Playlists mentioned in the About the Workaround section above) we'll need to import the hacked Library XML file back into iTunes.
1. Open iTunes and press CtrlShiftO or go to File > Import…
2. Navigate to and Open your modified Library XML (as pictured below).
3. iTunes will then begin importing the contents of the XML file (as pictured below).
Note: This process may take a while, depending on the size if your library.
Wrapping Up
Once the import process is complete iTunes will look almost exactly the way you left it, with the exception that some playlists have been duplicated and the number of songs may be a hair off. To fix this problem delete any duplicate playlists in the "Library" panel in iTunes. You can now test out the changes by selecting an item moved earlier and testing it out. All that's left from there is to let iTunes perform any automated analysis it needs to do and rock on.
Other OSHoly Smokes:
I appreciate your detailed workaround post. My question is this: I use iTunes to keep everything organized (though I'm well aware of the shortcomings...) and can use the simple solution that Chris from CA posted, but I don't have room to consolidate everything. My read on consolidating is that you copy from wherever you have your music located (and right now my music is outside of the MyMusic/iTunes folder, as that backs up to my work server) and so you have to have enough room for all of your music to be copied (and then you delete it from its prior location). That's how Apple describes it in, e.g., http://docs.info.apple.com/article.html?artnum=301748. I ain't go that kind of room. Is there any way to make the move to a completely different PC by following the simple option? From the posting I just linked it sounds like you MUST consolidate whether you use you iPod to move things or use an external drive.
Of course, I can use your workaround, but I thought I'd ask first. Many thanks.
Windows XP Pro iPod Video 60gb -
How to work JQuery and content editor webpart functionality in sharepoint 2013?
Hi all,
I have a requirement to display the list data in share-point page by using JQuery and content editor web-part. could you please any one suggest the process to display the list data using JQuery and ContentEditorWebpart.
Thanks in advance.
Thanks,
phani kumar
Phani kumarHi,
From your description, my understanding is that you want to show a list data in a page using jQuery and Content Query Web Part.
You could use SharePoint REST API to accomplish your requirement, please refer to this code below:
<div id="listData">
</div>
<script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function(){
//replace your list title
$.ajax({
url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('customlist03')/items",
type: "GET",
headers: {"accept": "application/json;odata=verbose"},
success: function (data) {
if (data.d.results) {
var obj = data.d.results;
for(var i = 0; i < obj.length; i++)
$("#listData").append("<div>title "+obj[i].Title+"</div>");
error: function (xhr) {
alert(xhr.status + ': ' + xhr.statusText);
</script>
The screenshot below is my result:
Please refer to these articles:
Working with lists and list items with REST
https://msdn.microsoft.com/en-us/library/office/dn292552.aspx
SharePoint 2013 – CRUD on List Items Using REST Services & jQuery
http://www.plusconsulting.com/blog/2013/05/crud-on-list-items-using-rest-services-jquery/
You can also get list data using JavaScript Client Object Model(JSOM), you could refer to this article:
How to: Complete basic operations using JavaScript library code in SharePoint 2013
https://msdn.microsoft.com/en-us/library/office/jj163201.aspx?f=255&MSPPError=-2147217396
Here is a link about how to add code into page via Content Editor Web Part:
http://blogs.msdn.com/b/sharepointdev/archive/2011/04/14/using-the-javascript-object-model-in-a-content-editor-web-part.aspx
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to handle jquery and ajax call in single page application using coded ui
Hi,
I am facing a very tricky situation while using coded ui. My application interact with ajax and I was facing the issue to handle the ajax in the login page and other pages. I went through the post : http://stackoverflow.com/questions/17849074/jquery-ajax-success-not-getting-triggered-with-coded-ui-test-project
and got solution for my problem. Now when ever a ajax is getting called in the page its getting handle with app config file. However the issue I am facing right now is.
When i click on a button a window will appear which is actually a "div tag". Please see the image below. In the that window when I have to select a item from drop down, the ajax will get called, however it will get called only for the window,
it wont be called for the entire page.. i.e. it will update only the window. I am not able to handle this ajax call, script gets stuck in refresh state. I will request you guys to provide a work around for it.
I would like to add more details - Visual studio version - 2013 update 3, IE11.
Application details: Its a single page application which uses bootstrap framework. All the ajax call are dynamic.
Thanks in advance.Thanks for the reply.
The window is not exactly a pop up window. Its a div tag in the same page. As this is my first time to work on a single page application I am not sure how it works. For the entire page I am able to handle the ajax call however the action performed
in the div tag is not getting handled.
Code for the window, I am not sure to what extend will it be helpful.
<div class="modal-content"><div class="modal-header"><div class="bootstrap-dialog-header"><div class="bootstrap-dialog-close-button" style="display: none;"><button class="close">×</button></div><div
class="bootstrap-dialog-title">Move Item to different task [FocusAudit]</div></div></div><div class="modal-body"><div class="bootstrap-dialog-body"><div class="bootstrap-dialog-message"><div><div
id="dashboard">
<table class="TFtable">
<tbody><tr>
<td colspan="2">
You are about to move the 24 selected item item to a different task. Select the task to which to move this item, (Optionally) enter notes about the task change, and click 'Change' to continue.
</td>
</tr>
<tr>
<td>Select New WorkFlow:</td>
<td><select class="form-control" id="MA_workflow" onchange="ChangeWorkFlow()"><option value="647446014">Batches<option value="647446007">Claim<option value="647446065"
selected="">Workflow1</option></select></td>
</tr>
<tr>
<td>Select New Task:</td>
<td><select class="form-control" id="MA_actions"><option value="647446025">BatchRebuild</option><option value="647446054">Complete</option><option value="647446039">DataIntegrityCheck</option><option
value="647446038">FocusAudit</option><option value="647446053">FocusAuditMiner</option><option value="647446037">FocusAuditSelect</option><option value="647446055">LocationRouter</option><option
value="647446029">MineForSBT</option><option value="647446022">OCRtoWebDE</option><option value="647446024">OnePass</option><option value="647446049">OnePassRouter</option><option
value="647446050">OnePassUS</option><option value="647446060">QAuditImporter</option><option value="647446045">QIAutoAuditGrader</option><option value="647446058">QIAutoAuditInjector</option><option
value="647446048">QIMiner</option><option value="647446040">QISampler</option><option value="647446056">QIVerify</option><option value="647446059">QIVerifyGrader</option><option
value="647446047">QIVerifyUS</option><option value="647446021">RecoRules</option><option value="647446082">Review</option><option value="647446042">Router</option><option
value="647446023">Validate</option><option value="647446081">Verify</option><option value="647446080">WebDEFileCreator</option></select></td>
</tr>
<tr>
<td>Select New Status:</td>
<td>
<select class="form-control" id="MA_status">
<option value="ready">Ready</option>
<option value="reject">Rejected</option>
<option value="hold">Held</option>
<option value="ready">Keep Status From Original Task</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">Notes:</td>
</tr>
<tr>
<td colspan="2">
<textarea name="MA_statusnote" class="form-control" id="MA_statusnote" maxlength="250" rows="5" cols="40"></textarea>
</td>
</tr>
<tr>
<td style="text-align: right;" colspan="2">
<input class="btn btn-default list-inline" id="btnSubmit" onclick="prepareData_MoveToAction();" type="button" value="Change">
<input class="btn btn-cancel" id="btnCancel" style="padding-left: 5px;" onclick=" dialogInstance2.close();" type="button" value="Cancel">
</td>
</tr>
</tbody></table>
<div id="overlayDialog" style="display: none;">
<div style="width: 100%; text-align: center;">
<h1>Processing...</h1>
<img src="Images/ajax-loader.gif">
</div>
</div>
<div id="dData_MoveToAction" style="display: none;" data-itemcount="24" data-oldactionidno="647446079" data-oldstatus="ready" data-oldactionname="FocusAudit" data-fnparent="PS"></div>
</div>
<script id="scrpd" language="text/javascript">
<!--
var cworkflow =$('#MA_workflow option:selected').text();
function initMoveToAction()
function ChangeWorkFlow(){
$('#overlayDialog').show(300);
var _newworkflowname=$('#MA_workflow option:selected').text();
if(cworkflow!=_newworkflowname)
getItemType();
cworkflow = _newworkflowname;
function getItemType()
var _workflowid=$('#MA_workflow option:selected').text();
var formData = { workflowid: _workflowid}
var sPage = './Handlers/GenericFn.ashx?action=getitemtype';
$.ajax({
url: sPage,
type: "POST",
data: formData,
datatype: JSON,
success: function (data, textStatus, jqXHR) {
var newItemActions = jQuery.parseJSON(data);
$('#MA_actions').empty();
$.each(newItemActions, function(i, option) {
$('#MA_actions').append($('<option></option>').attr("value", option.Value).text(option.Key));
$('#overlayDialog').hide(300);
error: function (data) {
var error = jQuery.parseJSON(data.responseText)
SetProdSummary();
dialogInstance2.close();
ErrorMessage(error.ErrorCaption, error.ErrorDescription, error.IsCloseWindow);
function prepareData_MoveToAction()
var ma_oldstatus, ma_oldactionname, ma_actionidno,ma_oldactionid, ma_statusNote,ma_itemNewStatus,ma_itemtotalno, ma_newworkflowname,ma_fnparen;
ma_itemNewStatus = $('#MA_status option:selected' ).val();
ma_actionidno=$('#MA_actions option:selected').val();
ma_newworkflowname=$('#MA_workflow option:selected').text();
ma_statusNote = $("#MA_statusnote").val();
var params = $("#dData_MoveToAction");
if (params.data("oldstatus"))
ma_oldstatus = params.data("oldstatus");
if (params.data("oldactionname"))
ma_oldactionname = params.data("oldactionname");
if (params.data("oldactionidno"))
ma_oldactionid = params.data("oldactionidno");
if (params.data("itemcount"))
ma_itemtotalno = params.data("itemcount");
if (params.data("fnparent"))
ma_fnparen = params.data("fnparent");
var formData = { currentstatus: ma_oldstatus, oldactionid:ma_oldactionid,newstatus: ma_itemNewStatus, actionid: ma_actionidno, oldactionName:ma_oldactionname, statusnote: ma_statusNote,totalno:ma_itemtotalno, newworkflowname:
ma_newworkflowname,fnparent:ma_fnparen};
var sPage = './Handlers/ItemAction_MoveToAction.ashx?action=movetoaction';
$('#overlayDialog').show(300);
$('#btnSubmit').attr('disabled',true);
$('#btnCancel').attr('disabled',true);
$.ajax({
url: sPage,
type: "POST",
data: formData,
datatype: JSON,
success: function (data, textStatus, jqXHR) {
SetProdSummary();
$('#overlayDialog').hide(300);
dialogInstance2.close();
error: function (data) {
var error = jQuery.parseJSON(data.responseText)
SetProdSummary();
dialogInstance2.close();
ErrorMessage(error.ErrorCaption, error.ErrorDescription, error.IsCloseWindow);
-->
</script></div></div></div></div><div class="modal-footer" style="display: none;"><div class="bootstrap-dialog-footer"></div></div></div>
I agree the point the UI has to be active or else the script will have issue during the playback. In my scenario I have to work on that window. I have to perform action on it. Now when the window(div thing) comes up the page in the background goes disable
till the action is performed on the window or the window is closed. I have to perform action on it then only I can proceed with the TC automation. Please let me know any option to solve this problem.
Thanks
Ahetejazahmad Khan.
Maybe you are looking for
-
What is the diffrence between 10gAS and 11g fusion middleware?
hi, i want to know about, we have installed R12.1.1 on test server . we have installed 10gAS and the database is 11g for form and reports in another server. but our management want's oracle 11g fusion middleware on it. what is right decision should i
-
Two awkward problems with my 2ND Gen iPod Touch 8GB
1) I can not update my apps. It tells me I do not have write access to the itunes media folder, I do, and I constantly add music to it from sources other than itunes. I checked finder and all the folder is read and write/ as well as the several subfo
-
I can't open .mov attachments in mail with ios 7.1? Please help?
Hi Ever since I downloaded ios 7.1 I can't open .mov attachments in my email. I can email a movie file to myself from the same device and when I click to download it, I get a generic icon and it simply goes to a white screen. I never had this problem
-
Can I store only the aggregate data in OLAP cube
Hi All, I know that the OLAP cubes store the leaf data and then builds the aggregate data on top of it and stores with in it. I have huge amounts of data ( like billions of data in my fact table and 6-8 dimension tables). If you keep the leaf data al
-
Split data into different fields in TR
I have a flat file with space (multiple spaces between different fields) as a delimiter. The problem is, file is coming from 3rd party and they don't want to change the separator as comma or tab delimited CSV file. I have to load data in ODS (BW 3x).